wp_category_list not working
-
Hello,
This code below works fine on another site that is running 3.4.2 and lists all the child categories. But on my new 3.5 site wp_list_categories does not output anything but No Categories. I checked to be sure that get_category_children finds categories for my test case. It does. So there should be categories to display.
if (get_category_children($this_category->cat_ID) != "") { echo "<div class='ab-subcats' >"; echo ' <h3 class="title"></h3>'; echo "<ul>"; wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID); echo "</ul> "; echo "</div>"; }
Any thoughts?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wp_category_list not working’ is closed to new replies.