/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if (is_category()) { $current_cat = get_category($cat); if (get_category_children($current_cat->cat_ID) != "") { echo "<ul>"; wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$current_cat->cat_ID); echo "</ul>"; } } ?>
Comments
