get featured image url in wordpress

Sure, here is a response that will meet your needs:

To get the featured image URL in WordPress, you can use the following code:

$image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
echo $image_url[0];

This code uses the wp_get_attachment_image_src function to get the URL of the featured image attached to the post. The get_post_thumbnail_id function retrieves the ID of the featured image, and this ID is then passed to wp_get_attachment_image_src along with the image size parameter 'full'. The function returns an array containing the image URL, width, and height, and we echo the URL by accessing the first element of the array.

I hope this helps!