Support

Home Forums Event Espresso Premium Past Events Page

Past Events Page

Posted: January 29, 2016 at 7:46 am


Schaper (AMA)

January 29, 2016 at 7:46 am

I have seen other forum threads about creating a past event list…I see the shortcode argument called “show_expired=true”. This will show all events, with Expired Events included. My Feature request is simple…just add a “show_upcoming” argument that is TRUE by default, but could be set to false.

Using the manually-applied category method to achieve a Past Events list is not a great or long-term solution.

Alternative…on the front end, in any list of events, there many classes included in the event HTML structure – which makes it easy to select certain for custom CSS styling. I am surprised that the event status is not added a as class. That data is used to determine which badge to display (upcoming, expired etc).

By adding the status as a class, we could show an auto-updating Past Event list using the current shortcode, and just CSS > display:none any events with the upcoming class.

Would you consider either or both of these code enhancements?

  1. Add show_upcoming argument to [ESPRESSO_EVENTS]
  2. Add status as a class in the event display HTML

Thank you guys!


Josh

  • Support Staff

January 29, 2016 at 2:48 pm

Hi Scott,

It turns out you can do this with a custom query, there’s some example code that you can use/adapt in this gist:

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

The support post ‘Past Events 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