I was wondering if anybody know hows to modify the existing category widget to only display the categories within the selected parent category. Example:
If my categories are structured like:
- Computers
- Laptops
- Desktops
- Software
- Electronics
- Cameras
- Audio/Video
If somebody is viewing posts in the Computers category I would like the categories widget in the side bar to only display Laptops, Desktops & Software..
Is there a way to get this done? Is anybody familiar of a plugin that maybe do that? Thanks!
1) To Show only Subcategories:
2) To Show All Main Categories:
3) To show All Categories + Subcategories like Tree menu:
4) view this code too:
Thanks for your help. I was able to get it to work by doing this...
how about using something like this? on a singles page you could add a call from within the single.php page to a new sidebar or an include file...?
ie:
newsidebar.php
this will show only categories from the currently used category?
ie:
if current category is 5 // Computers then all that will be shown in the list is