Show events that are currently happening
-
When you get upcoming events, using
tribe_get_events()
it seems that if the start time is passed, then the event isn’t shown, which isn’t ideal. If an event is today, from 2:00 – 2:25, I would definitely like to show that event when someone comes to the site at 2:05.So, shouldn’t this code give me the events which have end times greater than now? It returns nothing unless the _EventStartDate is used, and in that case, it won’t filter the events properly.
$args = array( 'posts_per_page' => 25, 'meta_query' => array( array( 'key' => '_EventEndDate', 'value' => 'now', 'compare' => '>=' ) ), );
Right now, my only real choice is to show all of today’s events, but it would be nice to hide the ones which end dates have passed.
Any ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Show events that are currently happening’ is closed to new replies.