Retrieve a specific field from taxonomy term through advanced custom fields [closed]

To retrieve a field from ACF for a term (instead of, for example, a post), you should use the taxonomy name, followed by an underscore, followed by the term ID instead of the post ID when calling the_field or get_field. Assuming you want to retrieve the field image_toc for the taxonomy mytax and term ID $termid that would be:

<img src="https://wordpress.stackexchange.com/questions/151877/<?php the_field("image_toc', 'mytax_' . $termid ); ?>" />

In your case, this would amount to

<img src="https://wordpress.stackexchange.com/questions/151877/<?php the_field("image_toc', 'manufacture_1' ); ?>" />

Leave a Comment