Last active
March 6, 2022 10:03
-
-
Save lamberger/ed939cb6c5e0e34b499bbc370e3b1057 to your computer and use it in GitHub Desktop.
Add wp custom post type feed to main 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
function pjl_skh_feed($qv) { | |
if (isset($qv['feed']) && !isset($qv['post_type'])) | |
$qv['post_type'] = array('post', 'cpt_nr1', 'cpt_nr2'); | |
return $qv; | |
} | |
add_filter('request', 'pjl_skh_feed'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment