Show products from 2 categories on page (Woocommerce)

4

I have a question. How do I display products of 2 categories on a page with woocommerce, as if it were a filter? I tried to create the page with the shortcode of the plugin, but it did not work:

[product_categories number="20,17" parent="0"]
    
asked by anonymous 07.05.2015 / 20:45

1 answer

1

The shortcode is wrong. The number specifies the quantity of products. For caetgorias you should 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"]
    
23.05.2015 / 20:13