If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

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

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, 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 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 required one. Shortcode for category display should be as 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