Skip to content

Instantly share code, notes, and snippets.

@ericandrewlewis
Created July 11, 2012 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericandrewlewis/3090793 to your computer and use it in GitHub Desktop.
Save ericandrewlewis/3090793 to your computer and use it in GitHub Desktop.
function get_image_id_like_genesis_does() {
if ( has_post_thumbnail() )
$id = get_post_thumbnail_id();
else
$id = genesis_get_image_id( 0 );
return $id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment