WordPress Get Featured Image URL in an Image Tag. Our team of coders has simple exampled to show the WordPress featured image in the tag,
So that you make it useful for as required.
Normally, everyone faced that problem to set up in an image tag. Do check out the below code for simple save.
If you still find any problem, then our coders are always ready to help you with comments.
Use the below simple code to get the image full url.
that url can have used in many ways like in <img src=""> tag.
In the below i will show you how to use in img tag
$post_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
<img src="<?php echo $post_image; ?>" alt="img"/>
Now you can set image width and height according to your requirements.