wordpress – Show products from 2 categories on the page (Woocommerce)


I have a doubt. How do I show products from 2 categories on a page with woocommerce, as if it were a filter? I tried creating the page with the plugin's shortcode, but it didn't work:

[product_categories number="20,17" parent="0"]


The shortcode is wrong. The number specifies the quantity of products. For categories you must use "ids":

[product_categories number="12" parent="0" ids="20,17"]

If you want to show all top-level categories:

[product_categories number="12" parent="0"]
Scroll to Top