WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
    
Try the RSS Includes Pages Plugin? (Note: completely untested. This Plugin was last updated a year ago, and last tested against WordPress 2.9.2.) EDIT: Here's another one that will create a Feed for Pages: WCM Page Feeder Plugin. – Chip Bennett May 28 '11 at 20:50
up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.