
garryknapper(@garryknapper)
2 Posts
Customers
Quote from garryknapper on April 15, 2024, 16:42
Hi,
I am using the [woof_products] shortcode to display products on some of my pages. However, in some cases, I want to exclude a category that is not relevant to that page. Is there a way I can do this using the shortcode? This is what I have so far:
[woof_products taxonomies=pa_brand:2911+product_cat:2561]
The brand attribute id and the product category id are currently included but I would actually like to exclude that particular product category id from displaying on the front-end. Is there a simple way to do this please?
Thanks,
Garry
Hi,
I am using the [woof_products] shortcode to display products on some of my pages. However, in some cases, I want to exclude a category that is not relevant to that page. Is there a way I can do this using the shortcode? This is what I have so far:
[woof_products taxonomies=pa_brand:2911+product_cat:2561]
The brand attribute id and the product category id are currently included but I would actually like to exclude that particular product category id from displaying on the front-end. Is there a simple way to do this please?
Thanks,
Garry

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 16, 2024, 10:38
Hello Garry
Unfortunately the plugin does not have such a feature
In this case you need to customize the request. Please use this hook - https://products-filter.com/hook/woof_products_query
Hello Garry
Unfortunately the plugin does not have such a feature
In this case you need to customize the request. Please use this hook - https://products-filter.com/hook/woof_products_query