You may have noticed I upgraded my wordpress to 2.xx, once again. 😉 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 “feed:” part. I understand they want a new protocol for binding feed links to feed reader applications… Sorry, that’s not what I expect from a feed link; it must be the effective link to the xml feed and nothing else!
- Adjust post date format to show the time too.
- Change the header image.
- Add some page counter code to the footer.
- Probably some other stuff I’m forgetting right now..
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! 🙂 That’s a nice surprise. I wonder why they don’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?
Ok, almost forgot to explain how to enable it:
- open sidebar.php
- find “wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’);”
- change the hierarchical param to 1
mm, somehow have the feeling I already did this tweak before….