• I have preloaded taxonomies into my wordpress site. I am able to list active taxonomies using the following code:

    <?php 
    
    $taxonomy    = 'zip-codes';
    $orderby      = 'name';
    $show_count   = 0;      // 1 for yes, 0 for no
    $pad_counts   = 0;      // 1 for yes, 0 for no
    $hierarchical = 1;      // 1 for yes, 0 for no
    $title        = '';
    
    $args = array(
      'taxonomy'     => $taxonomy,
      'orderby'      => $orderby,
      'show_count'   => $show_count,
      'pad_counts'   => $pad_counts,
      'hierarchical' => $hierarchical,
      'title_li'     => $title
    
    );
    ?>
    
    <ul style="
        font-size: 20px;
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
    	text-align: center;
    ">
    <?php wp_list_categories( $args ); ?>
    </ul>

    I have tried the 'hide_empty' => true, but it displays all active taxonomies as well. I am trying to separate the lists.

    Is there a way to do this with inactive taxonomies using a different $args

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show a list of inactive Taxonomies’ is closed to new replies.