Title: Make filter conditional
Last modified: November 22, 2022

---

# Make filter conditional

 *  Resolved [iamlasse](https://wordpress.org/support/users/iamlasse/)
 * (@iamlasse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/make-filter-conditional/)
 * Hi, I’ve added some filters on this client site. They are requesting for example
   that apparel only shows if item type selected is sport apparel. Is there a hook
   to add this functionality or some other way?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmake-filter-conditional%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * (@stepasyuk)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/make-filter-conditional/#post-16222483)
 * Hi [@iamlasse](https://wordpress.org/support/users/iamlasse/)
 * Thank you for using Filter Everything.
 * In general it is possible with PRO version because you can use option “Hide empty
   Filters” and if a filter has no intersections with other filters it will be hidden
   automatically. And also you can use feature “Parent filter” that hides a filter
   until his parent is selected. BTW, now is Cyber Sale Week and you can buy PRO
   with discount.
 * But also you can achieve the same with Free version and using hooks. For example
   you can create `empty-filter.php` template that does not display anything and
   use hook ‘wpc_view_include_filename’ that handles what template will be included
   for current filter. Also you can use function `flrt_selected_filter_terms();`
   to detect what filter terms were selected.
 * I hope this will be useful for you.
 *  Thread Starter [iamlasse](https://wordpress.org/support/users/iamlasse/)
 * (@iamlasse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/make-filter-conditional/#post-16226542)
 * Hi Thank you for getting back to me.
    I’ve set the option for empty filters to
   always hide but if you look at this page [https://wordpress-579258-2636403.cloudwaysapps.com/shop/?product_cat=sport-equipment](https://wordpress-579258-2636403.cloudwaysapps.com/shop/?product_cat=sport-equipment)
   You can see apparel says N/A and isn’t hidden…. How to fix that?

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

The topic ‘Make filter conditional’ is closed to new replies.

 * ![](https://ps.w.org/filter-everything/assets/icon-256x256.png?rev=3487105)
 * [Filter Everything — WordPress & WooCommerce Filters](https://wordpress.org/plugins/filter-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-everything/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)

 * 2 replies
 * 2 participants
 * Last reply from: [iamlasse](https://wordpress.org/support/users/iamlasse/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/make-filter-conditional/#post-16226542)
 * Status: resolved