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?
- How to show adsense on specific posts/pages in WordPress?
- WordPress problem with subcategories under identical names!
- How to install Xvfb (X11 Server) in Linux Server
- WordPress – Retrieve author/user details from Post ID
- Nokia E50 Mobile Review
- 10 Useful WordPress User Interface / Dashboard Hacks!
- How to output parent and child categories in WordPress
- Capturing a Screenshot of a Website
- Adman plugin automatically disables the adsense ads?

