Home>Support>Show all woocommerce products by category

Show all woocommerce products by category

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!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 1 year, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi, thanks for posting your question.

    Using WooCommerce demo data and demo categories, the following works for me:

    [products category="tshirts-clothing"]
    

    Can you perhaps confirm at ProductsCategories that the slug inserted is correct?

  2. 1 year, 29 days ago Gianluigi

    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.

  3. 1 year, 29 days ago Gianluigi

    Oh sorry, the last try miss the cache deletion, now it works. Thank you.

  4. 1 year, 29 days ago Andrew Misplon
    Hi, I Work Here

    Awesome; glad to hear you found the issue and can get back to work. Cheers!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More