Hi,
This is a great plugin but there is one thing that is not working correctly or maybe we have not configed it correctly.
So I have a category that is several levels deep. It goes like
Vehicle
-Audi
— A4
— 2000-2005
— 2005-2010
— 201-2015
It shows the categoires on the sidebar nicely and I have the option to hide the parent perm enabled. So it hides Vehicle when lets say Audi is selected. The problem is that while it hides the parent category Vehicle, it doesn’t hide the siblings category of Audi. So it shows other makes such as Acura, BMW etc. I want to hide other makes when a user vists the /vehicle/audi category page. Only show Audi and its children, not the siblings of Audi.
You can see our demo site here:
https://youcaniccom.bigscoots-staging.com/vehicle/bmw/
username/pass: dev/dev
Is there something we can do it to configure to have this behavior? If not, is it possible to add this functionalty to hide sibling categories?
Thank you very much
OnPoint Plugins
Hi Rushit,
This may be accomplished by adding the following filter to your active theme’s functions.php file.
Have a great weekend!
Rushit Hila
Hello,
Thanks for the help. Can this functionality be implemented in the settings? And also is it possible for it to work if “Always display child categories” is checked?
OnPoint Plugins
Hi Rushit,
This version of the filters will add a “Hide siblings of first level children” checkbox to the widget options. If the option is checked, the siblings will be hidden, if widget will retain the default functionality.
At this time there is no great way to add this functionality if “Always display child categories” is checked because the menu is rendered using WordPress core logic which doesn’t have the necessary conditionals available.
Have a great day!
Rushit Hila
Thansk for the feedback. Is that code supposed to go in themes functions.php?
OnPoint Plugins
Yes. Within the functions.php of your active theme.