Support

Home Forums Event Espresso Premium Omit category form Event List

Omit category form Event List

Posted: November 15, 2013 at 6:10 am


Carol Wadsworth

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.
EE Version 3.1.35.2.P


Dean

November 15, 2013 at 6:21 am

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.


Carol Wadsworth

November 15, 2013 at 9:33 am

Thank you Dean.
I do remember customizing a Sold Out message to appear but only if the event was sold out; so I’m not sure why this is appearing. Any ideas on how to address that? Thank you!


Josh

  • Support Staff

November 15, 2013 at 11:32 am

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.


Carol Wadsworth

November 15, 2013 at 12:38 pm

Thanks Josh
just removed the customized template – but would love to have the Sold Out feature back, if possible. Thanks for your help!


Josh

  • Support Staff

November 15, 2013 at 4:07 pm

So was the customized code causing the issue? If so, what was the customized code?


Carol Wadsworth

November 15, 2013 at 4:21 pm

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 = ”; }
?>
h3 id=”event_title-<?php echo $event_id ?>” class=”event_title ui-widget-header ui-corner-top”>” class=”a_event_title” id=”a_event_title-<?php echo $event_id ?>” href=”<?php echo $registration_url; ?>”><?php echo stripslashes_deep($event_name) ?>
<?php echo $dr_soldout; ?>

Any idea why it would show Sold Out?


Dean

November 18, 2013 at 1:25 am

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).
You could try something like this https://gist.github.com/Apina/65d8ed21addf4c067e41 again it is custom and unsupported, but does appear to work on current versions.


Carol Wadsworth

November 18, 2013 at 2:38 pm

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.

Event Espresso