Categories

Featured templates

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

George Jones July 1, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

This video tutorial will show you how to display single and multiple products by ID or SKU in WooCommerce templates.

  1. Login to WordPress admin panel and Click on the Add New Page or Post.

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

     [product id="99"] 
    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-2
  3. In order to display single product by SKU add this code to the page’s body

    [product sku="FOO"]
    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-3
  4. In order to display multiple products by ID add this code to the page’s body

    [products ids="1, 2, 3, 4, 5"] 
    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-4
  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"]
    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-5
  6. To find the Product ID, go to the Products screen, hover over the product and the ID will appear.

    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-6
  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).

    WooCommerce.How_to_display_single_and_multiple_products_by_ID_or_SKU-7
  8. Then go to your site to check the newly created page/post.

Feel free to check the detailed video tutorial below:

WooCommerce. How to display single and multiple products by ID or SKU
Best Website Themes for WordPress
This entry was posted in WooCommerce Tutorials and tagged product ID, SKU, WooCommerce. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket