Posted: 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? |
|
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 |
|
Hey Josh, Thanks for your help. |
|
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: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
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? |
|
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. |
|
Hey Josh, Thanks, |
|
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. |
|
Hey Josh, |
|
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.