Home Forums Event Espresso Premium Hiding past events from Event List shortcode list

Hiding past events from Event List shortcode list

Posted: August 19, 2013 at 1:04 pm

Paul Pehrson

August 19, 2013 at 1:04 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]

In a separate issue, I’d prefer to hide the number of spaces left in each future class, instead just close the registration when the class is full or mark the class on the event list when it is full. If I have a slow month, I don’t want it to look like nobody is attending any of the upcoming classes.

I’m using WordPress 3.6
Event Espresso v. 3.1.34.P
EE – Calendar v
EE – Recurring Events v
Link to Event page:

Paul Pehrson

August 19, 2013 at 1:17 pm

I think it turns out that I’m not sure how to set the start and end registration dates for recurring events.

When I schedule a new class (recurring event), do I want to put the start and end registration dates for just the first class, or do I want to put a date that encompasses all classes? I want all future classes to always be available for registration, but I want to close registration for each class about a day before the class is to be held.


  • Support Staff

August 19, 2013 at 7:11 pm

Hi Paul,

I’ve found that it works well to set the registration start date to a date well before the first event’s start date, and set the registration end date to end the day before the first start date. It looks like you have events scheduled out for the next year, so the event registration start should start back at least one year ago.

This will allow the recurring events manager calculate out the start/end registration according to a formula and allow the events that start one year from now to be open for registration now.

You can hide the available space text by adding the following to your custom stylesheet:

<pre class=”brush: css; gutter: false; first-line: 1; highlight: []; html-script: false”>.spaces-available {display:none;}

Paul Pehrson

August 19, 2013 at 8:30 pm

Thank you Josh!

Paul Pehrson

August 22, 2013 at 12:11 pm

You say to add it to the custom style sheet, but it includes an HTML entity (the tag), and the entity is never closed. Can you tell me more specifically where you recommend I add this code?


August 23, 2013 at 12:15 am

Hi Paul,

The tag is an error on our part, it should read

.spaces-available {display:none;}

It can go in the style.css file of your theme or you can use a plugin such as My Custom CSS.

Edit: ignore the number in the above code, its just a line number.

  • This reply was modified 6 years ago by  Dean.

The support post ‘Hiding past events from Event List shortcode list’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 6 years ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!