I have tried the following but it does not seem to display the image in taxonomy.

<?php if(get_field('my_image', 'album_category') ): ?>

    <img src="<?php the_field('my_image','album_category'); ?>"  />

<?php endif; ?>


$ac_image= get_field('my_image', 'album_category');

echo '<img src="' .$ac_image. '">';

Seems I need to find the term id before displaying the field

$terms = get_the_terms( get_the_ID(), 'album_category');


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.