I’m trying to loop through my custom post type of ‘event’ that has a ‘event_start_date’ field using the Date Time Picker Field type. The return value is set to: November 22, 2021 3:11 pm : F j, Y g:i a
I also only want to show future events and skip any event from the past. Here is what I have. This code is skipping past events as I need, but it’s not ordering them correctly.
This is the order of the date fields as it loops through:
November 24, 2021 8:00 pm
December 24, 2021 8:00 pm
November 30, 2021 11:00 pm
January 25, 2022 1:00 pm