{"id":18714270,"date":"2025-11-10T19:47:34","date_gmt":"2025-11-10T19:47:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-show-2-levels-category-structure\/"},"modified":"2025-11-10T19:47:34","modified_gmt":"2025-11-10T19:47:34","slug":"how-to-show-2-levels-category-structure","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-show-2-levels-category-structure\/","title":{"rendered":"How to show 2 levels category structure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<br \/>We have complex category stucture on the website and also a lot of categories, therefore it would be very important to show these in two levels.<br \/>I can setup with the shortcode the listing only of the parent categories on the main shop page, but if I click on any parent category, than I see all of the products within this category.<br \/>Because of the complex category system, in this case I need to see first all of the clicked parent category related &#8220;sub&#8221; categories and than the related products.<br \/>Please be so kind and let me know, how can I setup it?<br \/>Thank you very much.<br \/> <\/p>\n","protected":false},"template":"","class_list":["post-18714270","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18714270","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\/18714270\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18714270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}