Wordpress - The Events Calendar - Sort Events by Time

Hi. I had asked this question directly to The Events Calendar support but no help, so has anyone faced this issue.

This query is about tribe_get_events under which I want to get todays events but ordered by time. Using start_date and end_date I am able to retrieve all events for today, but they come in the order the event had started and not as per time.

Their documentation gives the following code

'orderby' =>'meta_value',
'meta_key' => '_EventStartDate',
'order' => 'ASC',

I see _EventStartDate meta has the event start date and time. Is it possible to split the time and order events by time?

Right now events show up like using above code.
07:00 am
09:00 am
06:30 pm
04:30 pm
03:00 pm
08:30 am

but I want to sort the daily events by start time like this.
07:00 am
08:30 am
09:00 am
03:00 pm
04:30 pm
06:30 pm

The above function allows us to sort by Date + Time as thats a single field. Any way we can split the date & time and just sort by time. Any help with sorting the events as per time? Thank you.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.