Skip to content

Instantly share code, notes, and snippets.

@xafarali
Created June 9, 2013 22:01
Show Gist options
  • Save xafarali/5745429 to your computer and use it in GitHub Desktop.
Save xafarali/5745429 to your computer and use it in GitHub Desktop.
Get Thumbnail URL
/* GET THUMBNAIL URL */
function get_image_url(){
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'large');
$image_url = $image_url[0];
echo $image_url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment