How to get WordPress post featured image URL

前端 未结 20 2161
闹比i
闹比i 2020-12-02 04:59

I am using this function to get the featured images:


    
         


        
20条回答
  •  庸人自扰
    2020-12-02 05:20

    Use:

    ID), 'thumbnail_size');
    
        $feature_image_url = $image_src[0]; 
    ?>
    

    You can change the thumbnail_size value as per your required size.

提交回复
热议问题