• Resolved iamlasse

    (@iamlasse)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author stepasyuk

    (@stepasyuk)

    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.

    Thread Starter iamlasse

    (@iamlasse)

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