Created
May 4, 2012 01:24
-
-
Save jakebresnehan/2590984 to your computer and use it in GitHub Desktop.
Add custom post type to feed
This file contains hidden or 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']) && !isset($qv['post_type'])) | |
$qv['post_type'] = array('post', 'snippets'); | |
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