Hello, I have a custom EE_Event_List_Query that I’m running on the home page of http://www.simpleque.com/ if you scroll down a bit.
I just now noticed that the events are all in the correct order by their upcoming dates, but it’s showing the first dates of each specific event instead of the actual upcoming dates. How can I fix that?
I’m currently just pulling the dates using espresso_event_date()
It turns out that the espresso_event_date() template tag is designed to return the first date (or primary) of an event. Instead of using the espresso_event_date() tag, you can loop through all of the dates and grab the next upcoming date. This is some example code that’s used by some of the Event Espresso add-ons to do the same thing:
The support post ‘espresso_event_date using the first date of an event instead of the upcoming one’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.