Created
December 14, 2015 05:49
-
-
Save taniarascia/a889fb48a3467dbc7632 to your computer and use it in GitHub Desktop.
Echo Thumbnail of Featured 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 if(get_post_thumbnail_id()) {?><div class="flex-responsive"><div class="box _25 pad"> | |
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail' ); | |
$url = $thumb['0']; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment