How to include Custom Posts in a WordPress RSS Feed

// RSS Feed - include selected custom posts

function myfeed_request($qv) {
if (isset($qv['feed']) && !isset($qv['post_type']))
$qv['post_type'] = array('YOUR CUSTOM POST TYPE HERE!!!','post');
return $qv;
}
add_filter('request', 'myfeed_request');

Advertisements