This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Show all woocommerce products by category

2 years ago · Last reply by Andrew Misplon 2 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 2 years, 6 months ago

    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. Gianluigi 2 years, 6 months ago

    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. Gianluigi 2 years, 6 months ago

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

  4. Andrew Misplon Staff 2 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread