Closing the loop…featured image variable based on post id August 11, 2022 by Tarik Billa try using: $featured_img_url = get_the_post_thumbnail_url($queried_post->ID, 'full');