Support

Home Forums Event Espresso Premium Hiding Past events from shortcode list of events

Hiding Past events from shortcode list of events

Posted: November 13, 2013 at 4:58 pm


Paul Pehrson

November 13, 2013 at 4:58 pm

I have eight training classes that I sell from my WordPress site using Event Espresso. I want to create a WordPress page for each training class that shows all upcoming dates for that class. I created an Event Espresso category for each class, so all “Class A” classes have the same category. (I had to create separate events for each time of day that a class may be given, since recurring dates don’t let you specify different times for each future event, so I created a category to group all the same classes together.)
Now, on the event page that I’m creating, I want to include a short code that lists all upcoming classes in that category.
The shortcode works fine, except I can’t get it to exclude past events. Is there any way to exclude events that are in the past? Here is the shortcode I’m using:
[EVENT_LIST category_identifier=”minimad-a” show_expired=false]


Tony

  • Support Staff

November 14, 2013 at 4:44 am

Hi Paul,

Event Espresso uses an event ‘Status’ to determine whether or not an event should be included within event_lists/widgets (effectively anywhere it will be displayed)

The status is determined by the registration_start/end dates and the event_start/end date.

As you’ve mentioned REM I’m assuming the events have been created using the option:

‘Yes (all created events are available for registration between the above registration dates).’

This means that all events in that series will remain ‘open’ until the registration end date.

As a quick fix you can set the registration_end dates to either the event_start_date or any date before today’s. This will close the event and remove it from view.

The cure is to use the option:

‘No (each event’s registration start and end dates will be incremented according to a formula).’

And set the dates so that the registration_end = event_start. I can provide a more details example if you can provide me with details of the event series your are creating (dates, when registration should end etc) or site log-in information so I can view the series you have currently and use that as example.

If you prefer that please use https://eventespresso.com/send-login-details/


Paul Pehrson

November 14, 2013 at 1:44 pm

I sent my login details with additional specific information about this request. Thanks!


Tony

  • Support Staff

November 18, 2013 at 3:07 am

Hi Paul,

I have emailed you regarding specific events with details of how to fix them.

Please let me know know if you have any other issues 🙂

The support post ‘Hiding Past events from shortcode list of 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