WooCommerce. How to display single and multiple products by ID or SKU

,


1. In order to display single product by ID add this code to the page’s body

[product id="99"]

2. In order to display single product by SKU add this code to the page’s body

[product sku="FOO"]

3. In order to display multiple products by ID add this code to the page’s body

[products ids="1, 2, 3, 4, 5"]

4. In order to display multiple products by SKU add this code to the page’s body

[products skus="foo, bar, baz" orderby="date" order="desc"]

Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.