Okay, so i am trying to modify a wordpress widget that displays images, so that when you click on the image, it should lead to the url stated in the image’s href attribute. I’ve been trying to make it work for a while now…with no success. Please help!
Here’s what i’ve got:
<a href="THE CODE I'M MISSING">
<?php echo wp_get_attachment_image( $attachment->ID, array( 370, 278 ) ); ?>
</a>
Thanks, folks!