Created
December 17, 2012 12:21
-
-
Save norcross/4317913 to your computer and use it in GitHub Desktop.
add custom post type to RSS
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
function cpt_feed_request($qv) { | |
if (isset($qv['feed'])) | |
$qv['post_type'] = get_post_types(); | |
return $qv; | |
} | |
add_filter('request', 'cpt_feed_request'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment