Make filter conditional | WordPress.org

Hi @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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer