I recommend making a copy of the built in widget via a separate plugin where you can make all your own edits. Here’s some example code you can use as a starting point:
but it’s still showing the time, which I don’t need at all (I only need the event start date). Playing around with the true, false, nulls, does THINGS, but none of the combinations I’ve tried entirely remove the event time.
Also, I can’t find a hint as to how to echo out the venue’s city/state.
It turns out that the parameters set there do not control whether or not the time gets displayed there. What you can do instead is copy the entire espresso_list_of_event_dates() function from the core plugin’s template_tags.php file and paste it into your custom plugin. There you can make your edits.
If you want those edits to apply anywhere espresso_list_of_event_dates() is used in Event Espresso, you can leave the function name as is. If not, you can rename the function to something like espresso_list_of_event_dates_no_times() and change the function call in the widget so it calls your custom function.
The support post ‘Widget templating (add location, change date format, remove line break)’ 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.