Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Created August 16, 2013 19:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wpspeak/6252937 to your computer and use it in GitHub Desktop.
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