} else { //Default Menu Display if (get_depth() == 0) { $this_cat = get_category($cat); $id = $this_cat->cat_ID; echo '<ul>'; wp_list_categories('exclude=1&orderby=ID&show_count=0&title_li=&use_desc_for_title=0&child_of=' . $id . '&depth=1'); echo '</ul>'; } else { if (get_depth() == 1) { $this_category = get_category($cat); get_category_siblings($this_category); } else { if (get_depth() == 2) { $this_category = get_category($cat); get_category_siblings($this_category); } else { wp_list_categories('exclude=1&title_li=&depth=2'); } } } } } } } ?> </ul> </li> <div id="wpcf7-smc"> <h2>Contact Agent</h2> <?php
function get_child_cats($thecat = '') { if (get_depth() == 1) { //this is the parent category, aka, "Edgewater" $this_category = get_category($cat); $id = $this_category->cat_ID; wp_list_categories('orderby=ID&child_of=' . $id . '&title_li='); } else { if (get_depth() == 2) { //this is a sibling category, aka, "Edgewater -> MIR" echo 'darts'; get_category_siblings(get_category($cat)); } } }