I am using this code to show a list of all categories in sidebar
<?php wp_list_cats('list=0&sort_column=name&optioncount=0&hierarchical=0&optioncount=1&children=0'); ?>
but the problem is that is lists the child categories as well. so the final result using the above code is like :
- category 1
- category 2
- child-category 1
I do not want the child-category 1 to be displayed - any suggestion on how ?