I’m using a new plugin and need to find the source code of the featured image on the posts. After some research I found this nice little snippet of code and it works GREAT!!! Now I just need to find out how to only get the uri!! Any help would be much appreciated!
$imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "Full");
You can also get the width and height by using the array 1 or 2 like this:
$imgsrc returns the width.
$imgsrc returns the height.