excluding category in cat widget
-
Hi all,
I’ve been looking forward to exlude categories and subcategories from the category widget of this nice plugin woocommerce.
I’ve found a function witch works good in the root shop page but not further in the categoriesfunction exclude_widget_categories($args){ $exclude = "44,48,49,50"; // The IDs of the excluding categories separated by commas. $args["exclude"] = $exclude; return $args; } add_filter("woocommerce_product_categories_widget_args","exclude_widget_categories");
SO I tried the functions founded to exclude cats in the shop , witch works in the shop but the dropdown menu from the cat widget keeps giving me those cats I need to hide each time I’m going to see in the depts cats.
main shop page : widget is ok
all other archive cat page or single product page : widget is still giving me those cats I need to exclude.Does anyone has something to help ?
thanks
regards
B
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘excluding category in cat widget’ is closed to new replies.