Add Custom Post Types to the feed
add_filter('request', 'add_ctp_feed');
function add_ctp_feed($qv) {
if (isset($qv['feed']) && !isset($qv['post_type']))
// 'event' and 'press' are sample custom post types
$qv['post_type'] = array('post', 'event', 'press');
return $qv;
}
Written by Chris
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#