Skip to content

Instantly share code, notes, and snippets.

@Danjavia
Created November 14, 2013 03:54
Show Gist options
  • Save Danjavia/7461085 to your computer and use it in GitHub Desktop.
Save Danjavia/7461085 to your computer and use it in GitHub Desktop.
Use to obtain the thumbnail source
# Use to extract thumbnail source
$foto = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
$src = $foto['0'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment