Forums

Rss feed of a single page (3 posts)

  1. jerryr
    Member
    Posted 1 year ago #

    Hi - rss feeds from wordpress consists of posts.
    Is there a method to have a page in a rss feed?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    just a single page? Or to include pages in general?

    // ADDS POST TYPES TO RSS FEED
    function myfeed_request($qv) {
    	if (isset($qv['feed']) && !isset($qv['post_type']))
    		$qv['post_type'] = array('ve_products', 'post');
    	return $qv;
    }
    add_filter('request', 'myfeed_request');

    in functions.php allows you to determin what is in an rss feed.

    see the array with ve_products and post? That allows normal posts, and my custom post type of ve_products. You could swap out my CPT for page

  3. jerryr
    Member
    Posted 1 year ago #

    Thank you - how would you do a single post - say the page is named 'testpage' ?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags