Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php if (has_post_thumbnail( get_the_ID() ) ): ?>
  2. <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); ?>
  3. <img src="<?php echo $image[0]; ?>" class="img-responsive"/>
  4. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement