PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Multiple Filters

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Can I create multiple different filters using HUSKY that will hide different categories. I want to use a different filter on specific supplier pages within my website.

Thanks.

Hello!

Sure, you can create multiple different filters using HUSKY shortcode and display them on specific pages. Here's how to do it:

Using HUSKY Shortcode with Attributes

You can use the shortcode [woof] with special attributes to create customized filters. The main attributes you'll need are:

  • by_only - filter by specific taxonomies only
  • tax_only - show only specific taxonomy terms

Shortcode Examples:

  1. Filter only specific categories (e.g., categories 35, 42, 58):
[woof tax_only="product_cat:35,42,58"]
  1. Filter only by specific taxonomies (e.g., only categories and brands):
[woof by_only="product_cat,pa_brand"]
  1. Combine both - show only specific categories AND specific attributes:
[woof by_only="product_cat,pa_brand" tax_only="product_cat:35,42,58|pa_brand:nike,adidas"]

Setting Up Different Filters for Different Pages

Step 1: Create your shortcodes Create different [woof] shortcodes for each supplier page with the appropriate attributes.

Step 2: Place shortcodes in widgets Go to Appearance → Widgets and add"Text" or"Custom HTML" widgets containing your shortcodes to your sidebar.

Step 3: Install conditional widget plugin You need a plugin to control widget visibility. You can use:

Step 4: Set visibility conditions

Examples of conditional logic for different scenarios:

Show filter only on specific supplier page:

is_page('supplier-nike')

Show filter on supplier category archive:

is_tax('supplier', 'nike-products')

Show filter on multiple specific pages:

is_page(array('supplier-1', 'supplier-2', 'supplier-3'))

Show filter on category 35:

is_product_category(35)

Show filter on specific category slug:

is_product_category('electronics')

Complete Example Setup:

Let's say you have 3 suppliers and want different filters for each:

Supplier A (Nike) - Page ID: 123

  • Shortcode: [woof tax_only="product_cat:35,36,37" by_only="product_cat,pa_size,pa_color"]
  • Widget Condition: is_page(123)

Supplier B (Adidas) - Page slug: adidas-products

  • Shortcode: [woof tax_only="product_cat:40,41,42" by_only="product_cat,pa_size"]
  • Widget Condition: is_page('adidas-products')

Supplier C (Category Archive) - Category ID: 50

  • Shortcode: [woof tax_only="product_cat:50" by_only="product_cat,pa_brand,pa_price"]
  • Widget Condition: is_product_category(50)

Finding Your IDs:

  • Category IDs: Go to Products → Categories, hover over category name, look at URL: tag_ID=35
  • Page IDs: Go to Pages, hover over page name, look at URL: post=123
  • Attribute slugs: Go to Products → Attributes, they usually start with pa_ like pa_brand, pa_size, etc.

Tips:

  1. You can test your shortcodes first by placing them directly on a page to see if they work correctly
  2. Make sure to exclude the shortcodes that conflict - only one filter should be visible per page
  3. Use negative conditions if needed: !is_page(123) means"show everywhere EXCEPT page 123"

Full documentation on shortcode attributes: https://products-filter.com/shortcode/woof

 

p.s. but one note, on the same page for the current moment of time can be only one filter placed

Article is created: https://products-filter.com/how-to-show-different-filters-on-different-pages/