Sometimes things that should be easy are hard…

Today, I needed to display an Advanced Custom Fields (ACF) image on a custom taxonomy page.  Here’s the solution:

First, create the image field and apply it to the taxonomy like this:

Make sure you have the image field set to output the “Image Array” like this:

Now, go to your taxonomy term and add an image like this:

Finally, copy-and-paste code to your functions.php:

taxonomy;
		$term_id = $queried_object->term_id;
		$terms = get_field( 'artist_image', $taxonomy.'_'.$term_id);
		
		if( $terms ) {
			
			echo '';
		    
		} else {

		    //do nothing

		}
   
	}
}
?>

Finally, baske in the glory that is Advanced Custom Fields’ taxonomy image fields!

Artist is https://cryns.com

Ain’t life grand? Well…mostly?