Skip to content

Instantly share code, notes, and snippets.

@LeoLopesWeb
Last active June 26, 2018 20:27
Show Gist options
  • Save LeoLopesWeb/ec2610db1204355d6fddc00bb1e3e327 to your computer and use it in GitHub Desktop.
Save LeoLopesWeb/ec2610db1204355d6fddc00bb1e3e327 to your computer and use it in GitHub Desktop.
echo get_the_post_thumbnail_url(get_the_ID(),'medium'); // thumbnail, full
ou
echo wp_get_attachment_url( get_post_thumbnail_id( $saved_post_id ) );
ou
echo '<img src="'.get_the_post_thumbnail( $post_id, 'medium' ).'">';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment