{"id":118,"date":"2006-07-04T00:19:19","date_gmt":"2006-07-03T22:19:19","guid":{"rendered":"http:\/\/mattiesworld.gotdns.org\/weblog\/2006\/07\/04\/showing-hierarchical-category-structure-in-sidebar\/"},"modified":"2006-07-04T00:19:19","modified_gmt":"2006-07-03T22:19:19","slug":"showing-hierarchical-category-structure-in-sidebar","status":"publish","type":"post","link":"https:\/\/mattiesworld.gotdns.org\/weblog\/2006\/07\/04\/showing-hierarchical-category-structure-in-sidebar\/","title":{"rendered":"Showing hierarchical category structure in sidebar"},"content":{"rendered":"<p>You may have noticed I upgraded my wordpress to 2.xx, <a title=\"First try\" href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2006\/06\/21\/wordpress-upgrade\/\">once again<\/a>. \ud83d\ude09 It involves reapplying all those tiny modifications you forgot you ever needed to tweak that. My changes to the default wordpress theme:<\/p>\n<ul>\n<li>adjust feed url to leave out the &#8220;feed:&#8221; part. I understand they want a new protocol for binding feed links to feed reader applications&#8230; Sorry, that&#8217;s not what I expect from a feed link; it must be the effective link to the xml feed and nothing else!<\/li>\n<li>Adjust post date format to show the time too.<\/li>\n<li>Change the header image.<\/li>\n<li>Add some page counter code to the footer.<\/li>\n<li>Probably some other stuff I&#8217;m forgetting right now..<\/li>\n<\/ul>\n<p>But anyhow, what this post is really about, is that I finally figured out how to have hierarchical categories! I thought it really depended on the theme and searched the php files to find out where I could hack some hierarchy in. But it turns out the default theme supports this by default! \ud83d\ude42 That&#8217;s a nice surprise. I wonder why they don&#8217;t enable that by default? Why would I otherwise want to make a hierarchy in my admin and not see it on the front page?<\/p>\n<p>Ok, almost forgot to explain how to enable it:<\/p>\n<ul>\n<li>open sidebar.php<\/li>\n<li>find &#8220;wp_list_cats(&#8216;sort_column=name&#038;optioncount=1&#038;hierarchical=0&#8217;);&#8221;<\/li>\n<li>change the hierarchical param to 1<\/li>\n<\/ul>\n<p>mm, somehow have the feeling I already did this tweak before&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may have noticed I upgraded my wordpress to 2.xx, once again. \ud83d\ude09 It involves reapplying all those tiny modifications you forgot you ever needed to tweak that. My changes to the default wordpress theme: adjust feed url to leave out the &#8220;feed:&#8221; part. I understand they want a new protocol for binding feed links &hellip; <a href=\"https:\/\/mattiesworld.gotdns.org\/weblog\/2006\/07\/04\/showing-hierarchical-category-structure-in-sidebar\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Showing hierarchical category structure in sidebar<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":0,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattiesworld.gotdns.org\/weblog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}