The ‘event date’ differs depending on your event set up, a single event can have multiple ‘datetimes’ within it and depending on how you use the datetimes you need the date varies.
We have some template tags for the event which may work depending on your use case, for example espresso_event_date() may work for you, it pulls the ‘primary dattime’ (the first datetime) from the event and uses the date from that.
You can see a list of the template tag functions we have available HERE.
I’m assuming you aren’t getting an undefined function error?
The helper methods do their best to try and figured out the event object you need using the global post, but if you can pass the ID of the post in your loop, or you can also pass the post ID when calling the function:
The support post ‘Get Event Time Programatically’ 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.