I’d like to include Pages in my RSS feed. Whenever I add or edit a page, I’d like it to show up in the feed. I can’t seem to find any setting in the default WordPress installation or in the default (TwentyTen) theme.

How can I achieve this? I’m using the latest version of WordPress (3.1.3).

1 Answer
1

Adding the following code to your theme’s functions.php will solve your problem:

// Add Pages to RSS Feeds
function myfeed_request( $qv ) {
    if ( isset( $qv['feed'] ) && ! isset( $qv['post_type'] ) )
        $qv['post_type'] = array( 'post', 'page' );
    return $qv;
}

Found code here.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *