title: WordPress custom taxonomy parent-child navigation menu
body: <p>I'm trying to create the following menu structure from custom taxonomies:</p>
  
  <pre><code>CAT 1
  -SubCat1
  -SubCat2
  
  CAT 2
  CAT 3
  CAT 4
  </code></pre>
  
  <p>What I want to achieve is when I click on a child category (SubCat1 for example) My current navigation structure should stay the same, and bold the current subcat.
  When I click on another PARENT category, it's subcategories should appear and the the rest of the parent cats only (not all the cats with subcats).</p>
  
  <p>My problems are the following:</p>
  
  <p>I managed the create the child navigation menu when clicking on a parent category, but it only shows the CURRENT and the CHILD LEVEL categories in the menu, without the other main categories using this code:</p>
  
  <pre><code>&lt;?php
  $taxonomy     = $tax;
  $orderby      = 'name'; 
  $show_count   = 1;      // 1 for yes, 0 for no
  $pad_counts   = 0;      // 1 for yes, 0 for no
  $hierarchical = 1;      // 1 for yes, 0 for no
  $title        = '';
  if (get_term_children($term-&gt;term_id, $tax) != null) {
  $child = $term-&gt;term_id;
  } else {
  $child = '';
  }
  $args = array(
    'taxonomy'     =&gt; $taxonomy,
    'orderby'      =&gt; $orderby,
    'show_count'   =&gt; $show_count,
    'pad_counts'   =&gt; $pad_counts,
    'hierarchical' =&gt; $hierarchical,
    'title_li'     =&gt; $title,
    'child_of'     =&gt; $child,
    'current_category'   =&gt; 0
  
  );
  ?&gt;
  &lt;? if (get_term_children($term-&gt;term_id, $tax) != null) { ?&gt;
  &lt;h3&gt;&lt;?php echo $term-&gt;name; ?&gt; Templates&lt;/h3&gt;
  &lt;? } ?&gt;
  &lt;?php 
  wp_list_categories( $args ); ?&gt;
  </code></pre>
  
  <p>The problem is with the above code that when I click on a child category all my parent/subcategories are displayed again.</p>
  
  <p>I want to be able to stay on the same structure when browsing any of the subcategories from one big category with the addition of the bold font face to the subcategory I'm browsing.</p>
  
  <p>If this makes sense to someone please help.</p>
  
  <p>Thanks,</p>