Add Custom Posts to RSS Feed

I think one of the reasons RSS feeds are not as popular (as they should be) is due to the fact that they are not optimized to their full potential.

If you’re creating custom areas on your website, this content is not fed to RSS automatically. It takes additional tweaking to show these in your main RSS feed:

function myfeed_request($qv) {
    if (isset($qv['feed']) && !isset($qv['post_type']))
        $qv['post_type'] = array('post', 'books', 'movies'); // add the slug for your custom post types here
    return $qv;
}
add_filter('request', 'myfeed_request');

Find this and other tips here.

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.