Home Forums Event Espresso Premium Exclude category from [ESPRESSO_CALENDAR]

Exclude category from [ESPRESSO_CALENDAR]

Posted: March 31, 2020 at 12:29 pm


March 31, 2020 at 12:29 pm

Follow-up to forum post on hiding category on the ESPRESSO CALENDAR: I am using the code provided by Josh at

I have tested the code successfully and it removes the events from the calendar but only when this category is the only category assigned to the event. We have multiple categories assigned to events therefore, we need to hide all event having multiple category IDs assigned, but if any are (ID=120) we would like event not to appear in the calendar view.

Can we instead exclude the whole event if it has the category ID=120?


  • Support Staff

March 31, 2020 at 3:36 pm


There is a quick and dirty way to hide those using CSS. For example if the category slug is meeting then this CSS will hide all events categorized with meeting:

.fc-event.meeting {
display: none;

There may be another way to do this without CSS. Is there another way these events are unique? For example do they share a common status like “Cancelled” or do they share a common venue?


April 1, 2020 at 8:29 am

Hi & Thank you,
Yes, we are looking into CSS but we have ADA issues to contend with and so it’s not ideal for this site.

I think we could share a common venue or could we use TAG? We currently don’t use TAGs for anything in the events and this would be unique. I believe they are also using “[ONLINE]” at the end of the title but it’s not 100% separate there.



  • Support Staff

April 1, 2020 at 3:45 pm

Hi David,

You can try this snippet instead:

What that will do is make it so any events that have the online venue will not be included in the calendar.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Josh 1 month, 3 weeks ago ago

Topic Tags


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