wordpress get featured image url php code example
Example 1: get featured image url
echo get_the_post_thumbnail_url();
Example 2: wp+get feature image
<?php
echo get_the_post_thumbnail( $post_id, 'thumbnail' );
?>
echo get_the_post_thumbnail_url();
<?php
echo get_the_post_thumbnail( $post_id, 'thumbnail' );
?>