How to Get Featured Image Path
This article I will guide you to get the original link of the post avatar, this is used when you want to make the lightbox effect for your avatar.
You see the following code:
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 720,405 ), false, '' );
echo $src[0];
wp_get_attachment_image_src: This function is used to retrieve image path, the first parameter is the ID of the image, followed by size, the next parameter is the path icon, but I do not know it anymore. heee …
2nd line of code anyone knows nhiin loud and true k? provided the path to the outside.
This is a short post, but hopefully this will help someone to accidentally wander and read this article.