I would like to display a list of upcoming events on my front page that uses my custom markup.
I already customized the ‘archive_espresso_events.php’ and this works perfectly for [mysite].org/events. Is there a way to display events on the front page using this template?
I know that I can use [ESPRESSO_EVENTS] to display events on my front page. But it seems like this uses the markup defined in ‘EEW_Upcoming_Events.widget.php’.
EEW_Upcoming_Events.widget.php should only be used by the Event Espresso Upcoming Events Widget, not the [ESPRESSO_EVENTS] shortcode.
archive_espresso_events.php is a full template used for the archive output, did you break out your markup into smaller template files that can be called from other templates or is the above file outputting all of the event details?
My mistake was that I didn’t really use the [ESPRESSO_EVENTS] shortcode as I thought I had done. Instead, I had placed an upcoming events widget on the front page. I don’t really know why I was so convinced that I had used the shortcode.
When using [ESPRESSO_EVENTS] everything works perfectly!
Thanks for your quick response and have a great day! π
The support post ‘Use Customized Template to Display Event List on Static Front Page’ 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.