Show products from 2 categories on page (Woocommerce)

Asked

Viewed 1,218 times

4

I have a question. How do I show products from 2 categories on a Woocommerce page, as if it were a filter? I tried to make creating the page with the plugin shortcode, but it did not work:

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

1 answer

1

The shortcode is wrong. The number specifies the amount 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"]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.