• I’m using post-type posts (external videos) on my blog. Unfortunately, they don’t show up on the blog’s main page or in RSS. I could use category RSS for that, but I don’t know how to make the site’s RSS point out to the category RSS. Could anyone tell me how to do it?

    Also, is it possible to include post-type posts in a Calendar or change Calendar’s feed?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Dunno if this helps at all…

    // 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');

    I was able to use this to add my CPT (ve_products) to my rss feed. You can add more CPTs to that array.

    Or, you could make a custom feed just for your CPT, which I’ve also done, and works quite well

    https://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress

    And you could have your CPT posts on your main blog page if you wanted by adding them to a query in index.php…..

    Thread Starter sylwiaofwarsaw

    (@sylwiaofwarsaw)

    Oh, that sounds great! Which file should I edit and where in the file should I put the code?

    The code I posted goes in functions.php

    Thread Starter sylwiaofwarsaw

    (@sylwiaofwarsaw)

    I must have done something wrong. I added the code to functions.php in wp-includes and received this error:

    Fatal error: Call to undefined function add_filter() in /home/xxxxxx/ftp/wp-includes/functions.php on line 1776

    Thread Starter sylwiaofwarsaw

    (@sylwiaofwarsaw)

    It works! Thank you so much! I added the code to the external-videos’ plugin php and it works in the feed! Still not in the calendar though. Is there a way to either add custom posts to the blog’s archive or to point out custom posts’ feed as calendar’s feed?

    I have the external-videos feed. It came with the plugin, so that’s not a problem. It’s just that it’s mostly a video site, so there are no posts other than videos.

    added this as a feature to the plugin. You can now set a checkbox in the admin page that you want the video posts added to the RSS feed of the site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirecting RSS’ is closed to new replies.