I use the following code to display sub categories with category pages on my site, I have categories set up as counties of the UK...
<?php if (is_category()) {
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "") {
echo "<div class=\"countysubs\"><h2>Counties</h2>";
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></div>";
}
} ?>
However, I now want to use a hierarchical custom taxonomy to categorise posts by county, and so I am wondering how I can change the above code so that it can be used for a custom taxonomy.
I have searched everywhere and cannot find a solution, can anone here help?