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

  1. Login to WordPress admin panel and Click on the Add New Page or Post.
  2. In order to display single product by ID add this code to the page’s body
    [product id="99"]
  3. In order to display single product by SKU add this code to the page’s body
    [product sku="FOO"]
  4. In order to display multiple products by ID add this code to the page’s body
    [products ids="1, 2, 3, 4, 5"]
  5. 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"]
  6. To find the Product ID, go to the Products screen, hover over the product and the ID will appear.
  7. To find the Product SKU, go to the Products, open specific product and in the Product Data you will be able to find the SKU number (if number does not exist you should create the number).
  8. Then go to your site to check the newly created page/post.