Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php $thumb_id = get_post_thumbnail_id();
  2. $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true);
  3. echo $thumb_url[0];
  4. ?>
  5.  
  6. // replace 'thumbnail-size' with actual image size per its name. ie full, large, medium, thumbmnail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement