Add custom post type to feed

If you’re using custom post types on your WordPress site, you have to manually add it to the main RSS feed. You can choose what post types you want to include by adding the custom post type to the array.

Code Snippet:

function myfeed_request($qv) {
    if (isset($qv&#91;'feed'&#93;) && !isset($qv&#91;'post_type'&#93;))
        $qv&#91;'post_type'&#93; = array('post', 'movies', 'actors');
    return $qv;
add_filter('request', 'myfeed_request');

Posted in Pure hacks, Social