How to get taxonomy acf data in WordPress


<pre>
$terms = get_the_terms( get_the_ID(), 'custom_taxonomy' );
<?php foreach( $terms as $term ){
	$image = get_field('image', $term->taxonomy . '_' . $term->term_id);
} ?>
</pre>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s