Hi, I want categories to be displayed in side bar like this: Main Category 1 —-> Sub Category 1 —-> Sub Category 2 —-> Sub Category 3 Main Category 2 —-> Sub Category 1 —-> Sub Category 2 —-> Sub Category 3 In sidebar.php the code is: <li><h2><?php _e('Categories'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?> </ul> </li> PHP: Can anyone please tell me what to add in this code to have the desired category display? Thanks in anticipation!
Actually you can do this without any coding. Just add a new sub-category under the parent. Here is more: wordpressmax.com/wordpress-guide/wordpress-categories
I'm stuck with the design in fact. Creating child category is not the issue instead displaying it. I've created child categories, but they display as parent. I want Categories to be displayed like this: Economics Micro Economics Macro Economics Applied Economics Management Organization Planning Decision Making But the categories are being displayed like this: Applied Economics Decision Making Economics Macro Economics Management Micro Economics Organization Planning @sat123 just going through the link, let's see if i get something there. Thanks, BTW!
Analyst did you find a solution to this? i currently have the same problem, did that plugin sort it for you and if so, does it work with 2.5.1?
Yeah I found! It's like: <li><h2><?php _e('Categories'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=1'); ?> </ul> </li> PHP: Just make the hierarchical '1' from '0' in sidebar.php of the theme you're using!
Excellent Analyst, thats sorted that part, do you know any way to only have the child categories show after clicking on the parent category? Thanks for the above code by the way.
All my pleasure pipes! The other thing is what I myself m' trying to find out. I'll update the thread as soon as I find something! Regards,