I have been working on a wordpress theme recently and suddenly i felt the need to show up only top level categories (parent only) and disable all subcategories.
Eventually it was so easy with wordpress using wp_list_categories function. All you have to do is set the depth=1 to show only top level categories and disable all subcategories. Thats it!
wp_list_categories(‘depth=1&title_li=’);
For more tweaks be sure to check out this wordpress documentation.
Similar Posts:
- How to get parent category name in Wordpress?
- Wordpress problem with subcategories under identical names!
- How to install Xvfb (X11 Server) in Linux Server
- Nokia E50 Mobile Review
- Where does wordpress store htaccess rewrite rules?
- Fix ->Wordpres plugin could not be activated fatal error cannot redeclare!
- 3 Must Do Things for Wordpress Blog Starters
- Capturing a Screenshot of a Website
- Xvfb – Fatal server error: Couldn’t add screen 0
- Be Careful! Wordpress Themes Consume more CPU Power

