Created
April 12, 2015 16:35
-
-
Save nickkuijpers/14cd1cb11b0ccd10878f to your computer and use it in GitHub Desktop.
WooCommerce Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$imagearray = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium' ); | |
?> | |
<a href="<?php the_permalink(); ?>"> | |
<img class="img-responsive" src="<?php echo $imagearray[0]; ?>"> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment