{"id":18727705,"date":"2025-11-21T08:39:54","date_gmt":"2025-11-21T08:39:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/shortcode-to-show-a-specific-category-2\/"},"modified":"2025-11-21T08:39:54","modified_gmt":"2025-11-21T08:39:54","slug":"shortcode-to-show-a-specific-category-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/shortcode-to-show-a-specific-category-2\/","title":{"rendered":"shortcode To Show a specific Category"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Would someone kindly type out the short code for showing the products in a specific category?  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I created a top-level category for a new page I created separate from the default WooCommerce shop page. This new page is for products I sell that are assigned to a specific category. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried [product_category number=&#8221;77&#8243; parent=&#8221;0&#8243;],  [product_category number=&#8221;77&#8243;]\u00a0(77 is my category ID) but this is pulling all top-level categories onto the page and the second one does&#8217;t work at all. I only want the products from a single category. <\/p>\n","protected":false},"template":"","class_list":["post-18727705","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18727705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18727705\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18727705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}