Is there a meta key I can add to a loop to show the first upcoming recurring event in a loop? Below is the current query and args I have in place:
Thanks in advance for any help.
<?php
$today = date(‘Y-m-d’);
$lastDayOfMonth = date(‘Y-m-d’, strtotime(‘+45 day’));
$args=array(
‘start_date’ => $today,
‘end_date’=> $lastDayOfMonth,
‘eventDisplay’ => ‘all’,
‘post_type’ => ‘tribe_events’,
‘meta_key’ => ‘_EventStartDate’,
‘orderby’ => ‘event_date’,
‘order’ => ‘ASC’,
‘posts_per_page’ => -1,
‘tax_query’=> array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘slug’,
‘terms’ => array( ‘everyone-home’, ‘kids-home’, ‘teens-featured’, ‘adults-home’ )
)
)
);
$query = new WP_Query($args); ?>