How to add pages to feed?

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

Related posts

Leave a Reply

1 comment

  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.