Hi, would this query an event that goes from 14th of october to 14th of november ?
Is it possible via your plugin to query all events starting in a given month (and to do this for each month of the year). I don’t want some events to disappear because they are longer than one month.
// Retrieve all events in October 2014
$events = tribe_get_events( array(
'eventDisplay' => 'custom',
'start_date' => '2014-10-01 00:01',
'end_date' => '2014-10-31 23:59'
) );
Thanks for reaching out! Queries such as these are determined by an event’s start date–if your event’s start date is located within the specified range, the event will be displayed by the query, even if the event’s end date falls outside of that range. For more information on crafting event queries, please refer to our Knowledgebase documentation here:
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Events in given month’ is closed to new replies.