Show only selected category and childs
-
Is it possible to show only the selected category and its childs?
The shortcode is in a template, can be loaded from multiple categories, so I selected to add automatically all the available categories.But If I have a hierarchy like:
– Spring/summer
— Man
— T-shirt
— Hoodie
— Woman
— T-shirt
— HoodieIf I am in the category page “Spring/summer”, it is ok to show everything, but if I’m in “Man”, I should not see “Woman”.
Is it possible to hide it, or at leas to create a function to add a “selected” class to the item corresponding to the page category, so to hide the others by css?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Show only selected category and childs’ is closed to new replies.