Posted: 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 |
|
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. |
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;} |
|
|
Thank you Josh! |
|
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? |
|
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.
|
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.