Skip to main content
Wordpress

Post thumbnail url WordPress

$url =  wp_get_attachment_image_src(get_post_thumbnail_id($id), ‘thumbnail’ );

echo $url[0];

0 Reviews

There are no reviews yet.