Title: Toggle Parent Categories
Last modified: December 30, 2021

---

# Toggle Parent Categories

 *  [ljknechtel](https://wordpress.org/support/users/ljknechtel/)
 * (@ljknechtel)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/)
 * The solution provided to my previous post ([https://wordpress.org/support/topic/toggle-collapse-expand-parent-categories/#post-15199174](https://wordpress.org/support/topic/toggle-collapse-expand-parent-categories/#post-15199174))
   does not work as needed. In order to expand each category to see subcategories,
   you have to check the category, but then checking a subcategory has no effect
   because it doesn’t overwrite the checked parent category selection. Like this:
   [https://www.loom.com/share/15f2750a98eb49e89babf952bca913c9](https://www.loom.com/share/15f2750a98eb49e89babf952bca913c9)
 * Ideally:
    The parent categories should have + beside them, not a checkbox; The(
   child) subcategories, when checked should have AND logic with other categories
   and filters.
 * I’ve managed to find a way to make it LOOK the way I’d like it to look but it
   doesn’t work properly. I can’t scroll down past a certain point with the filters
   on the left and can’t choose multiple subcategories from different parent categories
   and successfully display them. Here’s the test page: [https://festivalfurniture.com/office-furniture-test-toggles/](https://festivalfurniture.com/office-furniture-test-toggles/)
   
   See this demo: [https://www.loom.com/share/043b5d29e9634b6db52826aa343aa08e](https://www.loom.com/share/043b5d29e9634b6db52826aa343aa08e)
    -  This topic was modified 4 years, 4 months ago by [ljknechtel](https://wordpress.org/support/users/ljknechtel/).
      Reason: Added tags
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftoggle-parent-categories%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [themifyme](https://wordpress.org/support/users/themifyme/)
 * (@themifyme)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15208069)
 * Hi,
 * If you mean that you can not scroll inside your sticky sidebar, that is related
   to your theme, please contact your theme’s developers about this issue or disable
   the sticky-sidebar ( if your theme allows that ), in a regular sidebar if you
   scroll down you can see all bottom filter elements.
 *  Thread Starter [ljknechtel](https://wordpress.org/support/users/ljknechtel/)
 * (@ljknechtel)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15208118)
 * Yes, I can address that. I just want to know how to make the filter work as desired.
   Thank you.
 *  Plugin Author [themifyme](https://wordpress.org/support/users/themifyme/)
 * (@themifyme)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15219466)
 * Could you please clarify how you would like the filter to work?
 *  Thread Starter [ljknechtel](https://wordpress.org/support/users/ljknechtel/)
 * (@ljknechtel)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15219628)
 * Thank you for your response.
    I would like it to look like this. [https://www.loom.com/share/336dc566b0de4dbab5bb5cbd2ef316ca](https://www.loom.com/share/336dc566b0de4dbab5bb5cbd2ef316ca)
 * As mentioned above, I managed to get it to LOOK the way I want it to, but the
   filters don’t work as they should – with AND logic. Selecting more than one child
   category doesn’t work. Deeselecting them doesn’t work (ie. it doesn’t remove 
   the products in the deselected category from the products displayed.
 * Test it here: [https://festivalfurniture.com/office-furniture-test-toggles/](https://festivalfurniture.com/office-furniture-test-toggles/)
 * Again, ideally:
    – The parent categories should have + beside them, not a checkbox–
   The child categories, when checked should have AND logic so they can be selected
   with other child categories
 * Is there a PRO version of this plugin that includes this functionality?
 * Thank you.
 *  Plugin Author [themifyme](https://wordpress.org/support/users/themifyme/)
 * (@themifyme)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15222943)
 * This point seems to be resolved: – The parent categories should have + beside
   them, not a checkbox
 * and
 * – The child categories, when checked should have AND logic so they can be selected
   with other child categories for this you need “OR” if you want to mix 2 Child
   Categories, the “AND” logic will only show products published in both selected
   sub-categories, eg. if you select Cat1 and Cat2, then it will show only products
   that have both Cat1 and Cat2, with “OR” if you select Cat1 and Cat2, then products
   from both categories will show up. If I deselect sub-categories, the filter will
   reset, so it will show all published products from your Shop Page, but deselecting
   a filter doesn’t mean it will hide the product from your shop, see screen-recording:
   [https://share.getcloudapp.com/7KuqxwJP](https://share.getcloudapp.com/7KuqxwJP)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Toggle Parent Categories’ is closed to new replies.

 * ![](https://ps.w.org/themify-wc-product-filter/assets/icon-128x128.png?rev=1535808)
 * [Themify - WooCommerce Product Filter](https://wordpress.org/plugins/themify-wc-product-filter/)
 * [Support Threads](https://wordpress.org/support/plugin/themify-wc-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/themify-wc-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/themify-wc-product-filter/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [child categories](https://wordpress.org/support/topic-tag/child-categories/)
 * [collapse](https://wordpress.org/support/topic-tag/collapse/)
 * [expand](https://wordpress.org/support/topic-tag/expand/)
 * [parent categories](https://wordpress.org/support/topic-tag/parent-categories/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 5 replies
 * 2 participants
 * Last reply from: [themifyme](https://wordpress.org/support/users/themifyme/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/toggle-parent-categories/#post-15222943)
 * Status: not resolved