I want to display a page that displays ONLY expired events. I’ve read lots of people asking the same questions with some suggestions of answers, but nothing concrete. Please explain how I create an archive page that displays only expired events.
I should have added that I already use the category option, but that involves manual intervention, so I want a completely automated solution where expired events are automatically displayed in the archive.
Once the code is in your theme, you create a page and select the Past Events Only List for the page template in the Page Attributes box. You may need to copy some code over from your theme’s regular page template if the html doesn’t quite match what’s in the example code.
Hi Josh, I got that working although the solution is very basic. How do I get the event date to show just the date, no time? I’m not a PHP developer and although I have tried everything I can think of I’ve had no luk.
Within the code Josh posted, on line 30 change this:
espresso_event_date()
to this:
espresso_event_date('', ' ')
The first set of ” being empty, and the second set being an single space.
That should remove the time.
Viewing 4 reply threads
The support post ‘Events Archive 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.