Categories

Featured templates

WooCommerce. How to add a product/category to a page/post using shortcode

Judy Waters January 23, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to add a product/category to a page/post using shortcode in WooCommerce.

WooCommerce. How to add a product/category to a page/post using short-code

WooCommerce comes with shortcodes that can be used to insert content inside posts and pages. In case you need to add some specific product to a page or post, the following shortcode structure should be used:

[product id="###"]
or
[product sku="###"]

where ### symbol should be replaced with specific ID or SKU for a product. To find the product ID, go to Product > Edit screen and check the URL for the ‘post=####’ section:

WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1

In case you need to show multiply items, shortcode should be as following:

[products ids="###,# ##,  ###, ###, ###"] 
or
[products skus="###,  ###, ###" orderby="date" order="desc"]

where ### symbols  should be replaced with IDs or SKUs for  products.

In order to show multiply products of specific category, you should use slugs. Navigate to Products > Categories > Slug to find the required one. The shortcode for category display should be the following:

[product_category category="####"] 

where ### symbol should be replaced with actual slug of the selected category:

WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2

Feel free to check the detailed video tutorial below:

WooCommerce. How to add a product/category to a page/post using short-code
This entry was posted in WooCommerce Tutorials and tagged category, product, shortcode, 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