Posted By

blogjunkie on 12/28/10


Tagged

wordpress post-thumbnail


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

blogjunkie


Get the URL of Post Thumbnails


 / Published in: PHP
 

URL: http://www.leewillis.co.uk/getting-url-post-thumbnails-wordpress/

  1. $image_id = get_post_thumbnail_id();
  2. $image_url = wp_get_attachment_image_src($image_id,'large');
  3. $image_url = $image_url[0];

Report this snippet  

You need to login to post a comment.