{"id":15942,"date":"2012-03-19T01:50:49","date_gmt":"2012-03-19T05:50:49","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=15942"},"modified":"2017-07-11T08:13:58","modified_gmt":"2017-07-11T12:13:58","slug":"joomla-how-to-create-nested-categories-in-k2","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/joomla-how-to-create-nested-categories-in-k2.html","title":{"rendered":"Joomla. How to create nested categories in K2"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to create nested categories in Joomla using K2 component. Nested categories can be used to create additional filtering for K2 content (articles). <\/p>\r\n<p>For example you have a category Blog, and want to create sub-categories: Photography, Design, Art etc. As a result you should have the following categories structure. <\/p>\r\n<ul class=\"post-list\">\r\n<li>Blog\r\n<ul>\r\n<li>Photography<\/li>\r\n<li>Art<\/li>\r\n<li>Design<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<p>This can be easily done using Joomla administration panel. In Joomla admin panel go to<strong> Component &gt; K2 &gt; Categories<\/strong>. <\/p>\r\n<p><a href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-11.jpg\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-11.jpg\" alt=\"\" title=\"k2-nested-cat-1\" width=\"266\" height=\"300\" class=\"aligncenter size-full wp-image-15946\" \/><\/a><\/p>\r\n<p>In the top right corner click <strong>New<\/strong> to add new category. At the appeared screen use Parent select box to choose the parent category. <a href=\"\/help\/joomla-how-to-add-new-k2-category.html\">Learn more about category settings<\/a><\/p>\r\n<p><a href=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-21.jpg\"><img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-21-300x228.jpg\" alt=\"\" title=\"k2-nested-cat-2\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-15947\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-21-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/03\/k2-nested-cat-21.jpg 574w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>You are not limited in amount of categories you need so you are free to store your content the way you want. <\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to create nested categories in Joomla using K2 component.<\/p>\n","protected":false},"author":2,"featured_media":15994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[724],"tags":[1165,616,1106,483,1131],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15942"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=15942"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15942\/revisions"}],"predecessor-version":[{"id":81856,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/15942\/revisions\/81856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/15994"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=15942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=15942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=15942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}