• I have been trying to achieve this with the following code:

    <ul>
                    <?php
                      $args = array(
                        'orderby'            => 'ID',
                        'order'              => 'ASC',
                        'style'              => 'list',
                        'show_count'         => 1,
                        'hide_empty'         => 0,
                        'use_desc_for_title' => 1,
                        'child_of'           => 0,
                        'hierarchical'       => true,
                        'title_li'           => __( 'Directory Organization' ),
                        'show_option_none'   => __('No Directory Orgs'),
                        'number'             => NULL,
                        'echo'               => 1,
                        'depth'              => 0,
                        'current_category'   => 0,
                        'pad_counts'         => 1,
                        'taxonomy'           => 'directory',
                        'walker'             => 'Walker_Category' );
                      wp_list_categories($args); ?>
                  </ul>

    I like this because it shows the nested terms properly, but it is showing all of the terms rather than just the terms associated with the post. Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Show Taxonomy Hierarchy for Current Post’ is closed to new replies.