acf show the taxonomy image

Solutions on MaxInterview for acf show the taxonomy image by the best coders in the world

showing results for - "acf show the taxonomy image"
Malia
17 Apr 2017
1<?php
2    $terms = get_the_terms( get_the_ID(), 'product_brands' );
3
4       if( ! empty( $terms ) ) : ?>
5           <ul>	
6		<?php foreach( $terms as $term ) : ?>
7						    	 
8		 <li class="<?php echo $term->slug; ?>">
9															
10                    <img src="<?php the_field('brand_logo', $term); ?>" />
11		  
12                 </li>
13
14  <?php endforeach; ?>
15          </ul> 
16<?php
17   endif;
18?>