📜  获取特色图片网址 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:19.340000             🧑  作者: Mango

代码示例3
if ( has_post_thumbnail()) {
   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
   echo '';
   the_post_thumbnail('thumbnail');
   echo '';
}