Hi,
I am confused, I have seen so many 'solutions' to my problem but none of them seems to work for my specific situation. I have a taxonomy called project. Within the loop I am trying to get the link to the taxonomy the post is part of. It works fine with this:
<?php the_terms( $post->ID, 'project', ' ', ', ', ' ' );?>
but the problem with this line is that it outputs the taxonomy name with the link wrapped around it. But I want to use this link to wrap around an image that comes from the same post.
So I don't want a whole list of links or a return of all the posts in that taxonomy or anything. I just want to link to that taxonomy with an image instead of the taxonomy term. The following obviously doesn't work, but what will?
<a href="<?php the_terms( $post->ID, 'project', ' ', ', ', ' ' );?>"><img src="<?php echo $data[ 'portrait' ]; ?>"/></a>
I hope anyone can help me.
J