Posted: November 15, 2013 at 6:10 am
|
Hi there – I would like to omit a particular event category (challenge) from the event list on this page: http://www.cynergycrossfit.com/foundations-registration/ This is the code I have on the page: [EVENT_LIST order_by=date(start_date),id] Incidentally – the First Responders Challenge 7 is showing up as SOLD OUT – yet the event was just created and is open! In fact when you click on the link it will take you to an open registration page… why is that happening? Appreciate your help! Thank you! WordPress 3.7.1. |
|
Hi Carol, Currently it isn’t possible to exclude a category from the event list. This issue has come up a few times recently so I will add your +1 to adding an exclude option. The Sold Out message is not standard behaviour from Event Espresso, it is likely it is part of the modified event list templates you have. As such I would check the code there. |
|
Thank you Dean. |
Hi Carol, Can you look to see where the code was customized? You could try changing the code back to what Event Espresso provides to see if the customization is causing the issue. |
|
|
Thanks Josh |
So was the customized code causing the issue? If so, what was the customized code? |
|
|
Well, the custom code was designed to display “Sold Out” when the event was sold out. But the event wasn’t sold out. I just removed the the event_list_display.php file from the template directory. So, at least the “Sold Out” isn’t appearing. This is the code I received from EE support and inserted into the event_list_display.php file: if ($dr_attendeecount == 0) { $dr_soldout = ‘<span style=”color:red”> – SOLD OUT!</span>’; } else {$dr_soldout = ”; } Any idea why it would show Sold Out? |
|
Hi Carol, That code was something I came up with, possibly on a forum post and may no longer work with the current templates (it certainly looks incomplete at least). |
|
Thanks Dean, appreciate it! |
The support post ‘Omit category form Event 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.