Home Forums Events Calendar Add-on Filter Calendar by Venue Category

Filter Calendar by Venue Category

Posted: February 8, 2018 at 2:17 pm


February 8, 2018 at 2:17 pm

I have classes that I want filtered by event category, and venue category. The venue filter doesn’t work for me, because I might move around between several venues in the same city, but I want people to be able to find the class in their city. I tried using the event category and nesting all the classes in a class type group, and all of the locations inside a location group, but they all show in the same category dropdown, so the user can’t select both the “Residential Contractor” class and the location of “Greer”.

How can I accomplish this filter?


  • Support Staff

February 9, 2018 at 3:53 pm

Hi there,

I’m afraid the Calendar does not have a filter by venue category function. What you can do though is make use of the Venue Category archives to displays lists of upcoming classes at each location:

First, you add this code snippet to your site:

Then you set up a menu or links on a page to point to your venue category archives. For example if your venue category slug is greer then the URL for the venue category archive will be


February 10, 2018 at 9:08 am

Hey Josh,
Thanks for that snippet, but I must not understand how to use it because it broke my site. I copied the whole thing into a “snippet” using the Code Snippets plugin. Was I supposed to do something different? Is there something I’m supposed to customize to my site? At the bottom it says “next, add the above to an action found in the venue template.” That just doesn’t make any sense!

Thanks for your help.


  • Support Staff

February 12, 2018 at 6:40 am

The “next, add the above to an action found in the venue template.” is an instructional PHP code comment that is explaining what’s happening next.

When a site breaks because of adding some code, then it’s likely caused by adding the opening PHP tag where it shouldn’t have been added. You can follow this guide that shows how to add a code snippets plugin to your website:


February 12, 2018 at 10:16 am

Thanks, Josh, I knew that was a comment, it just didn’t make sense that was down at the bottom and said “next, add the above”

I did not add the PHP tag at the top, and I used the code snippets plugin, which is essentially the same as creating my own plugin, isn’t it? I didn’t change anything in the code, I copied it all, including the comments.

Any other ideas?


  • Support Staff

February 12, 2018 at 10:22 am

I’m not familiar with the code snippets plugin that you mention, so I cannot confirm whether it’s the same thing as creating your own plugin.


February 15, 2018 at 4:10 pm

Hey Josh,
I used the instructions for creating my own plugin, and I can see the venues by category, i.e. /venue-category/greer/ but it is only showing the venue name and address, but not any of the upcoming classes. What do I need to do to get the classes to show up on the archive page?



  • Support Staff

February 15, 2018 at 4:15 pm

Hi Fran,

Did you activate the plugin? If you can post a link to the page in question I can take a look to see if anything else there could be preventing the list from displaying.


February 16, 2018 at 2:03 pm

Hey Josh,
I got it to work. The plugin wasn’t activated. Now I just need to format the page.
Thanks for your help. I’m sure you’ll be hearing from me again!

The support post ‘Filter Calendar by Venue Category’ 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.

Support forum for the Events Calendar add-on.
Documentation for Events Calendar add-on and EE4 Events Calendar add-on

Status: closed

Updated by  socialsparkmedia 1 year ago ago

Topic Tags


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