Support

Home Forums Event Espresso Premium Events Archive page

Events Archive page

Posted: June 3, 2016 at 7:12 am

Viewing 4 reply threads


Auric

June 3, 2016 at 7:12 am

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.


Auric

June 3, 2016 at 7:17 am

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.


Josh

  • Support Staff

June 3, 2016 at 11:35 am

Hi there,

You can create an archive page that displays only expired events by adding the code from this gist into your WordPress theme:

https://gist.github.com/joshfeck/61a9e21bbc9d4111fbdf

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.


Auric

June 7, 2016 at 7:29 am

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.


Tony

  • Support Staff

June 7, 2016 at 2:39 pm

Hi Auric,

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.

Event Espresso