The Events Calendar – Query Events to Include Events That are Still Running
Question
I’m using the tribe_get_events function to run through and display a list of upcoming events:
$events = tribe_get_events( [
'posts_per_page' => 5,
'featured' => true,
'start_date' => 'now',
'orderby' => 'rand',
] );
However, this only includes events that haven’t started. If a multi-day event is included, it disappears as soon as the event has started, but I would like it to show up until the event has ended. Is it possible to amend the above query to do this?
If that’s not possible, can I add an extra 24 hours onto the posts, so that it will show events for the first 24 hours after they start?
0
the-events-calendar
4 years
2019-11-05T15:20:27-05:00
2019-11-05T15:20:27-05:00 0 Answers
57 views
0
Leave an answer