Hi,
A client asking me to show all products of a selected category inside a wordpress page. They use that shortcode yet:
[product_tag tags=”tag-slug-here” per_page=”-1″]
This one works for tags, but can’t find any doc/info about similar shortcode for categoories. I tried randomly something like:
[product_cat cat=”category-slug-here” per_page=”-1″]
[product_cat cats=”category-slug-here” per_page=”-1″]
[product_category cat=”category-slug-here” per_page=”-1″]
[product_category cats=”category-slug-here” per_page=”-1″]
But none of these works.
Please can you suggest how to achieve the result?
Thank you!
Hi, thanks for posting your question.
Using WooCommerce demo data and demo categories, the following works for me:
Can you perhaps confirm at ProductsCategories that the slug inserted is correct?
Sure, the slug is correct, che product category have 4 products, but nothing happen with:
[products category=”slug-here”]
Tags shortcode works, so I doubt may be some conflict with other plugins… I don’t know.
Oh sorry, the last try miss the cache deletion, now it works. Thank you.
Awesome; glad to hear you found the issue and can get back to work. Cheers!