/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // list child categories $cat_id = get_query_var('cat'); $catlist = wp_list_categories('echo=0&orderby=id&title_li=&child_of=' . $cat_id); if ($catlist) { echo $catlist; } else { echo "Please don't print No categories"; } ?>