Hello, I have this query which displays the upcoming events.
The only issue we have is that lets say in a day we have 2 events.
One finishes at 11am and the next starts at 15pm.
If I run this query at 11:30, I still see the first event that ended at 11am.
Is there a way to add time control so that if the event date and time has passed, then the upcoming event query shows the next event?
query_posts(array (
‘post_type’ => ‘tribe_events’,
‘eventDisplay’ => ‘upcoming’,
‘tax_query’=> array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘slug’,
‘terms’ => $category
)
),
‘posts_per_page’ => $limit,
‘order’ => ‘ASC’
));
Thanks a lot