Support

Home Forums Event Espresso Premium Only show expired events

Only show expired events

Posted: November 23, 2017 at 3:21 am


kemst

November 23, 2017 at 3:21 am

Hi
I am trying to show only a list of expired events. It is for customers who need to find events they have been on in the past but I do not want them to see current events on the same list.

This is the shortcode I am using [ESPRESSO_EVENTS show_expired=true sort=DESC limit=5] I would like to be able to add show-current=false.

Is there a way to do this?

Regards,
Runar


Josh

  • Support Staff

November 23, 2017 at 10:19 am

Hi Runar,

You can add the following code to your website and update the line of code that starts with is_page to match your page for showing only expired events:

https://gist.github.com/joshfeck/a170dc264548513f4b7ab77074ab9e61

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


kemst

November 24, 2017 at 1:32 am

Thank you Josh I will try that 🙂


Josh

  • Support Staff

November 27, 2017 at 1:56 pm

How’d that work out for you?

The support post ‘Only show expired events’ 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