Created
August 16, 2013 19:44
-
-
Save wpspeak/6252937 to your computer and use it in GitHub Desktop.
Add all custom post types to WordPress RSS feed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function myfeed_request($qv) { | |
if (isset($qv['feed'])) | |
$qv['post_type'] = get_post_types(); | |
return $qv; | |
} | |
add_filter('request', 'myfeed_request'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: http://core.trac.wordpress.org/ticket/12943