How do i exclude children categories from wp_list?
I’m trying to use wp list in my template but i’d like to display all parent categories while hiding the children categories. could someone please help ? I’ve read all the codex wp_list functions with no luck.
Right now I’m using this but it hides the parent of the category as well.
<?php wp_list_cats('sort_column=name&exclude=265'); ?>
Hope someone can help me. thanks
- The topic ‘How do i exclude children categories from wp_list?’ is closed to new replies.