• Hi,

    I want to display the taxonomy image for each category.

    <?php
    
     $args = array(
    		'type'                     => 'post',
    		'child_of'                 => 0,
    		'parent'                   => '',
    		'orderby'                  => 'name',
    		'order'                    => 'ASC',
    		'hide_empty'               => 1,
    		'hierarchical'             => 1,
    		'exclude'                  => '',
    		'include'                  => '',
    		'number'                   => '',
    		'taxonomy'                 => 'myTaxoName',
    		'pad_counts'               => false
      );
    
      $categories = get_categories($args);
    
      foreach ($categories as $category): 
    
    ?>
    
        <li>
          <!-- image display here -->
          <a href="">
             <p><?php echo $category->name; ?></p>
          </a>
        </li>
    
    <?php endforeach; ?>

    how do I use this code:

    print apply_filters( ‘taxonomy-images-queried-term-image’, ” );

    inside my code?

    Thx a lot in advance 🙂

    http://ww.wp.xz.cn/extend/plugins/taxonomy-images/

The topic ‘display categories images’ is closed to new replies.