I have waded through a LOT of documentation, posts on this forum, etc. and cannot figure out the syntax/approach for this. I have copied content-espresso-events-datetimes.php to my child theme and it is responding to changes. However, I’m needing to customize the startdate output.
I get October 23, 2018 5:30 PM format, which is fine but I want to customize that a bit. I’ve looked everywhere for arguments for espresso_event_date() but can’t find a list anywhere to change the output. Anything I have found is either EE3 syntax or just blows the page up in various ways.
Is there a way to format that start date (using something else besides espresso_event_date(), keeping in mind this is being done within the confines of the content-espresso_events-datetimes.php template in a child theme?
By default, the function uses the format set in your sites general settings but the above sets the format for that specific function call.
May I ask, what exactly are you wanting to output? espresso_event_date() pulls the ‘primary’ datetime for the event, meaning the first datetime at the top of the list within the editor.
Viewing 1 reply thread
The support post ‘EE4 espresso_event_date() Format Syntax’ 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.