{"id":38895,"date":"2015-01-23T02:11:22","date_gmt":"2015-01-23T07:11:22","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=38895"},"modified":"2015-01-23T02:11:22","modified_gmt":"2015-01-23T07:11:22","slug":"woocommerce-add-productcategory-pagepost-using-shortcode","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/woocommerce-add-productcategory-pagepost-using-shortcode.html","title":{"rendered":"WooCommerce. How to add a product\/category to a page\/post using shortcode"},"content":{"rendered":"<p>This tutorial shows how to add a product\/category to a  page\/post using shortcode in WooCommerce.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=iAbEKumjZjE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to add a product\/category to a page\/post using short-code<\/a>\r\n<p>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: <\/p>\r\n<pre>[product id=\"###\"]<\/pre> or <pre>[product sku=\"###\"]<\/pre>\r\n<p>where <strong>###<\/strong> symbol should be replaced with specific <strong>ID or SKU for  a product<\/strong>. To find the product ID, go to<strong> Product &gt; Edit<\/strong> screen and check the URL  for the <strong>&#8216;post=####&#8217;<\/strong> section: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1-300x228.jpg\" alt=\"WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-38896\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>In case you need to show multiply items, shortcode  should be as following: <\/p>\r\n<pre>[products ids=&quot;###,# ##,  ###, ###, ###&quot;] <\/pre> \r\nor <pre>[products skus=&quot;###,  ###, ###&quot; orderby=&quot;date&quot; order=&quot;desc&quot;]<\/pre>\r\n<p>where <strong>###<\/strong> symbols\u00a0 should  be replaced with <strong>IDs or SKUs for \u00a0products<\/strong>. <\/p>\r\n\r\n\r\n<p>In order to show multiply products of specific category, you  should use <strong>slugs<\/strong>. Navigate to <strong>Products &gt; Categories &gt; Slug<\/strong> to find the required one.  The shortcode for category display should be the following: <\/p>\r\n<pre>[product_category category=\"####\"] <\/pre> \r\n<p>where <strong>###<\/strong> symbol should be replaced with <strong>actual slug of the selected category<\/strong>:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2-300x228.jpg\" alt=\"WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-38897\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WooCommerce_How_to_add_a_product_category_to_a_page_post_using_shortcode_2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=iAbEKumjZjE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WooCommerce. How to add a product\/category to a page\/post using short-code<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to add a product\/category to the page\/post using shortcode in WooCommerce.<\/p>\n","protected":false},"author":66,"featured_media":43120,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1556],"tags":[687,542,1415,2418],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38895"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=38895"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38895\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43120"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=38895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=38895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=38895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}