Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mycustomfeed_cpt_feed( $query ) {
- // Add to my custom-type post type
- $types = array('post','blood-blog');
- if ( $query->is_feed() )
- $query->set( 'post_type', $types );
- return $query;
- }
- add_filter( 'pre_get_posts', 'mycustomfeed_cpt_feed' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement