Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Don't display recurring events more than once in the main blog loop
- add_filter( 'pre_get_posts', 'blog_loop_control_recurring_events', 60 );
- function blog_loop_control_recurring_events( WP_Query $query ) {
- if ( $query->is_main_query() && is_home() ) $query->set( 'tribeHideRecurrence', true );
- return $query;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement