Support

Account

Home Forums General Issues ACF get image from product term Reply To: ACF get image from product term

  • if get_the_terms() is working then it will return an array of terms rather than one term

    
    $terms = get_the_terms( get_the_ID(), 'brand' );
    if (!empty($terms)) {
      $term = $terms[0];
      ?><img src="<?php the_field('brand_logo', $term); ?>" /><?php 
    }