Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'pre_get_posts', 'front_page_next_recurring_event_only', 60 );
- /**
- * For events integrated into the main blog loop, only include the first upcoming instance of the
- * event.
- *
- * @param WP_Query $query
- */
- function front_page_next_recurring_event_only( WP_Query $query ) {
- if ( ! isset( $query->tribe_is_multi_posttype ) || ! $query->tribe_is_multi_posttype ) return;
- $query->set( 'tribeHideRecurrence', 1 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement