I’m trying to query a range of events but using tribe_get_events seems to misunderstand the start_date and end_date keys.
So far I have one event that starts and ends on Sep 11, 2013 and when I execute:
$events = tribe_get_events(array(‘start_date’ => ’10 Sep 2013′, ‘end_date’ => ’15 Sep 2013′, ‘eventDisplay’ => ‘all’));
it returns an empty array. When I execute:
$events = tribe_get_events(array(‘start_date’ => ’10 Sep 2013′, ‘eventDisplay’ => ‘all’));
it returns the one event however when I execute:
$events = tribe_get_events(array(‘start_date’ => ’20 Sep 2013′, ‘eventDisplay’ => ‘all’));
it still returns the one event.
I’m not sure if something changed in version 3.0; I found this usage in the 2.0 documentation but when I looked up the function in the 3.0 documentation, the document contains very little useful information.
Is this a bug or has the API changed?