Skip to content

Instantly share code, notes, and snippets.

@sxidsvit
Created November 30, 2015 14:18
Show Gist options
  • Save sxidsvit/265601d6d1862e59dd80 to your computer and use it in GitHub Desktop.
Save sxidsvit/265601d6d1862e59dd80 to your computer and use it in GitHub Desktop.
WordPress Post Thumbnail URL
<?php $url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); $url = $url['0']; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment