Posted: February 24, 2018 at 4:29 pm
I’m currently rocking the shortcode: [ESPRESSO_EVENTS show_expired=false limit=6 order_by=start_date,id] On my home page – and I want to have this puppy NOT display Category ID 4. I’ve located several posts about hiding a category, but I don’t see a recent solution (or I am missing it somehow in my searching). What are the best practices for this currently? Because we do want this category to show up on the Calendar and other similar shortcodes throughout the site – I’m hoping it can be done with a shortcode? THanks guys! |
|
Oh… and I should add that we want all Sub categories underneath it to not show (not sure if that will happen by default). |
|
Oh god – are you guys tired of hearing from me yet? What about hiding a category on Grid or Table views? We’re going to need that as well. [ESPRESSO_GRID_TEMPLATE] Is it possible here too? (But not everywhere) |
|
Did that make sense? We have a parent category called Ongoing and underneath it we have 4 or 5 sub categories. We want to be able to show and hide those on a per shortcode basis. yikes, right? |
|
Hi Shelly, The reason you didn’t get a reply until now (Monday A.M) is because Event Espresso support staff are offline during the weekends. I’m afraid there isn’t currently a NOT IN-type category parameter. Currently the Event Espresso shortcodes can accept one category parameter, where the list will include the events from the specified category. |
|
Cool. That’s awesome… is it possible to color code categories on the calendar? I see that there is for EE3… |
|
I found where to set colors! |
|
Josh – Is there a plan to add this? What about other non-EE plugins? I’m desperate. |
|
Hi Shelly, The one way is to add some custom PHP programming to filter out that category. Here’s a link to example code that shows how: https://gist.github.com/joshfeck/3777ceb1ba62a7acecd0adb89f0b7d1d You can add the above to a functions plugin or into your WordPress theme’s functions.php file. |
|
The support post ‘Does events shortcode allow hiding a 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.