Just as the title says i want to replace the term from a custom taxonomy with an image, but only in one custom loop and not in the main loop.
So i have a custom taxonomy named Tax1 that has two terms: Term1 and Term2. I use the following code to list the terms (i.e. Term1 or Term2) in the main loop:
echo get_the_term_list( $post->ID, 'Tax1', ' ', ', ', '' );
But for my custom loop i would like to have an image instead of the text term. I think this should be possible but i'm no good with php.
So how can i achieve this?