Quote from Alex Dovlatov on December 19, 2025, 14:38
Hello
Looks like you need to aplly shortcodes like:
[woof sid="shop_a" taxonomies="product_cat:cat_a,cat_b,cat_c"]
[woof sid="shop_b" taxonomies="product_cat:cat_d,cat_e"]
I you using them in sidebar, you can place them in separate text widgets, then you need to show them regarding to conditions, I can suggest you install this plugin https://github.com/realmag777/Show-WordPress-Widget-by-Logic and in set conditions there, here is examples of conditions you can use:
// Show on the Shop main page
is_shop()
// Show on ANY product category page
is_product_category()
// Show on a specific category (by slug)
is_product_category('cat-a')
// Show on multiple categories
is_product_category(array('cat-a', 'cat-b', 'cat-c'))
// Show on Shop_A page (if it's a regular WP page)
is_page('shop-a')
// Show on Shop_A page OR categories A, B, C
is_page('shop-a') || is_product_category(array('cat-a', 'cat-b', 'cat-c'))
// Show on all WooCommerce archive pages
is_woocommerce()
// Show on product page
is_product()
// Show on category and its subcategories
is_product_category('cat-d') || cat_is_ancestor_of('cat-d', get_queried_object())
// A more complex option is to check if the desired parent category exists in the hierarchy
is_product_category() && (is_product_category(array('cat-d', 'cat-d1', 'cat-d2', 'cat-e')))
Hello
Looks like you need to aplly shortcodes like:
[woof sid="shop_a" taxonomies="product_cat:cat_a,cat_b,cat_c"]
[woof sid="shop_b" taxonomies="product_cat:cat_d,cat_e"]
I you using them in sidebar, you can place them in separate text widgets, then you need to show them regarding to conditions, I can suggest you install this plugin https://github.com/realmag777/Show-WordPress-Widget-by-Logic and in set conditions there, here is examples of conditions you can use:
// Show on the Shop main page
is_shop()
// Show on ANY product category page
is_product_category()
// Show on a specific category (by slug)
is_product_category('cat-a')
// Show on multiple categories
is_product_category(array('cat-a', 'cat-b', 'cat-c'))
// Show on Shop_A page (if it's a regular WP page)
is_page('shop-a')
// Show on Shop_A page OR categories A, B, C
is_page('shop-a') || is_product_category(array('cat-a', 'cat-b', 'cat-c'))
// Show on all WooCommerce archive pages
is_woocommerce()
// Show on product page
is_product()
// Show on category and its subcategories
is_product_category('cat-d') || cat_is_ancestor_of('cat-d', get_queried_object())
// A more complex option is to check if the desired parent category exists in the hierarchy
is_product_category() && (is_product_category(array('cat-d', 'cat-d1', 'cat-d2', 'cat-e')))