Show Parent and Sub/Sub-Sub Categories on Post
-
Hiya, it’s me again. Just wondering if anyone is willing to help me out on this.
How can you only show the parent and Sub/Sub-Sub Categories on a single post?
Tried this code below, but it shows the whole list of categories.
<?php
// show_count=1 causes undefined index notice in WP3.0. Set to 0 to get rid until they fix in WP.
$catQueryString = ‘hide_empty=0&orderby=id&title_li=&use_desc_for_title=1&taxonomy=category&depth=0&child_of=’ . $this_category->cat_ID;
wp_list_categories($catQueryString);
?>I’m using wordpress 2010 theme. Many Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Show Parent and Sub/Sub-Sub Categories on Post’ is closed to new replies.