Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add custom post types to index
- function add_cpts_to_index($query) {
- if($query->is_tax && false == $query->query_vars['suppress_filters']) {
- $query->set('post_type', array('post', 'employee', 'project', 'recprogram', 'partner', 'testimonial', 'destination', 'capitalprogram', 'class', 'tribe_events'));
- }
- return $query;
- }
- add_filter('pre_get_posts', 'add_cpts_to_index');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement