Support

Home Forums Event Espresso Premium Upcoming Events showing events currently active

Upcoming Events showing events currently active

Posted: April 25, 2017 at 7:00 am

Viewing 1 reply thread


faeger

April 25, 2017 at 7:00 am

Hi there!

When using the Upcoming-events widget or shortcode, I cannot see an option to not show events, that are already taking place…

For example it shows an event that started on the 1. of April but runs until July…

How can I only show events that are NOT active but upcoming…?

Thanks


Josh

  • Support Staff

April 25, 2017 at 3:18 pm

Hi there,

You can make the widget show only upcoming events by adding some PHP code to your website:

https://gist.github.com/joshfeck/39b42cfca8f98baff3f08c59d284367d

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

Then for the shortcode, you’ll add the following:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

Viewing 1 reply thread

The support post ‘Upcoming Events showing events currently active’ 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