I need to block off a category from the grid template, but have it show on the calendar. I have looked through the forums- can’t find any real answers.. it is to block off private even times.. so availability is displayed to book an event.
It turns out that the shortcode will only accept one category slug. There is another way to exclude the category from the grid though. You can filter the query so the category is excluded. Example code follows:
You can add the above to a functions plugin or into your WordPress theme’s functions.php file.
You’ll need to modify the above code in two places to fit your site. Where it checks the page ID, you’ll plug in your event grid page’s page ID, and where it sets ‘terms’, your category slug for private events.
Hope that helps!
Viewing 3 reply threads
The support post ‘exclude a category from grid’ 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 Event Espresso 3 and Event Espresso 4.