Posted: October 23, 2018 at 5:53 pm
|
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. If I use:
for the non-single pages like this:
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? |
Hi there,
So looking in that file you’ll find this:
Which means you can pass the date format and time format to the functions like so:
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? |
|
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.