Support

Home Forums Event Espresso Premium Show only Expired Events in grid view

Show only Expired Events in grid view

Posted: December 5, 2023 at 8:09 am


Webmaster_ARMA_NL

December 5, 2023 at 8:09 am

Hi, on the archive events page we would like to show only the past events. I have searched for it, and I saw the plugin “Event Espresso Past Events List Shortcode” for using the shortcode [espresso_past_events]. That would work if we would like to post it as a simple list. However we are using your grid view template add-on, and we would like to show the past events in this grid view. Is there a shortcode or other way to do that?

This is the url: https://armanl.eu/events-archive/ for now we show only a simple list.

Thanks for your respond!

Bea


Rio

  • Support Staff

December 5, 2023 at 8:33 pm

Were you able to download the past event? it is just example plugin on how you can query past event.

here’s the link.
https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

If you want to modify it, change the shortcode-template.php according to the styles you need.

the other option is to use this existing shortcode
[ESPRESSO_GRID_TEMPLATE show_expired=true category_slug=past_event]

Create a category and put all expired on that category.

thanks


Webmaster_ARMA_NL

December 6, 2023 at 1:08 am

Hi Rio, thank you for your respond.
So the only way to do it within the grid view to put every expired event manually into a category?
Thanks again,
Bea


Rio

  • Support Staff

December 6, 2023 at 9:09 pm

Right, That’s how you do it using existing event grid shortcode. Or use the snippet we shared and customize the template.

thanks

The support post ‘Show only Expired Events in grid view’ 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