I cant display the image in custom taxonomy template
-
Hi Im trying to get the taxonomy image in the custom-taxonomy.php
In codes below I was testing but I got the image 10 times ??
Would be nice to display the image of the term only one time in the left side of the description and the 10 videos of the taxonomy under the info$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $paged = 1; if ( get_query_var('paged') ) $paged = get_query_var('paged'); if ( get_query_var('page') ) $paged = get_query_var('page'); $args = array( 'paged' => $paged, 'actress' => $term->slug ); $wp_query = new WP_Query($args); ?> // This is the image to display for the actor <?php foreach ($term as $cat) : ?> <?php if (function_exists('z_taxonomy_image_url')) { ?> <div class="leftside"><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></div> <?php } ?> <?php endforeach; ?> // Custom Term Description <?php $termDiscription = term_description( '', get_query_var( 'actress' ) ); if($termDiscription != '') : ?> <div class="rightside"><?php echo $termDiscription; ?></div> <?php get_template_part( 'templates/movies', get_post_format() );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘I cant display the image in custom taxonomy template’ is closed to new replies.