Hi,
I have the following code inside a custom post type loop:
$args = array(
'posts_per_page' => 10,
'meta_query' => array(
'relation' => 'AND',
array(
'key' => '_EventVenueID',
'value' => $venue_id,
),
array(
'key' => '_EventEndDate',
'value' => date("Y-m-d H:i:s"),
'compare' => '>='
)
),
);
$events = tribe_get_events($args);
The query i want to do is: Select for a specific venue id all events which end date is equal or later than current date & time.
Is there any other shorter way – or more accurate / optimized way – to do that query? or am i in the right way?
Also: and what about the recurrent events? Will they show up in this query?
Thanks in advance!