Okay I give up, well anyway, this
<?php wp_list_cats(‘sort_column=name&hide_empty=0&optioncount=1’); ?>
is the core.
Good luck !
Oh sh..,
The li and ul tags disappeared in my posting ..
Again :
- <h2><?php _e(‘Categories’); ?></h2>
<?php wp_list_cats(‘sort_column=name&hide_empty=0&optioncount=1’); ?>
Hello,
You want categories & subcategories hierchically (and indented) listed in the sidebar ? Here is the solution …
In the sidebar.php you can put the following :
- <h2><?php _e(‘Categories’); ?></h2>
<?php wp_list_cats(‘sort_column=name&hide_empty=0&optioncount=1’); ?>
That will display your categories and subcategories, neatly hierarchical and indented (if your .css allows so).
I just started creating a website, using WordPress, and you can see the above script in action at http://www.starterstarter.com.
Happy WP-ing !