Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add all custom post types to WordPress RSS feed.
<?php
function myfeed_request($qv) {
if (isset($qv['feed']))
$qv['post_type'] = get_post_types();
return $qv;
}
add_filter('request', 'myfeed_request');
@wpspeak
Copy link
Author

wpspeak commented Aug 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment