Support

Home Forums Event Espresso Premium How to Exclude a Category on Events Page?

How to Exclude a Category on Events Page?

Posted: February 27, 2013 at 2:43 pm

Viewing 5 reply threads


Audrea Robbins

February 27, 2013 at 2:43 pm

I need to show all categories on my events page except for one category. How would I do that? I used this code including only the following categories and expired but it’s still including all events and displaying a title at the top of the page saying Clients Only. I couldn’t find any code on the ShortCode Docs page showing how to exclude a category but still show expired events. However, I don’t want that category to show even if it is expired… Make sense?

[EVENT_LIST show_expired=true category_identifier="open-1-day-or-split-night-morning-class, open-split-night-class, client-only-event, pastoral-staff-event, church-only-event"]


Jonathan Wilson

February 27, 2013 at 4:27 pm

If I’m understanding correctly, you could add a separate shortcode for each category, like so:

[EVENT_LIST show_expired=true event_category_id="open-1-day-or-split-night-morning-class"]
[EVENT_LIST show_expired=true event_category_id="open-split-night-class"]
[EVENT_LIST show_expired=true event_category_id="client-only-event"]
[EVENT_LIST show_expired=true event_category_id="pastoral-staff-event"]
[EVENT_LIST show_expired=true event_category_id="church-only-event"]

Then, you can just omit the shortcode for the categories you don’t want to show.


Audrea Robbins

February 28, 2013 at 10:04 am

Thanks. But how do I exclude a category regardless of it’s date being expired or current?


Jonathan Wilson

February 28, 2013 at 10:10 am

You would just leave that category’s shortcode out and list only the ones you want to show.

Maybe I’m not following you?


Audrea Robbins

February 28, 2013 at 3:30 pm

Ok, I think I was confused… Makes sense now. Thanks!


Jonathan Wilson

February 28, 2013 at 3:34 pm

Sorry I confused you. I know it can be overwhelming. Thanks for hanging in there with us. 🙂

Viewing 5 reply threads

The support post ‘How to Exclude a Category on Events Page?’ 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