📜  获取帖子缩略图网址 - 无论代码示例

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

代码示例5

   ALL parameters are optional. Not needed if you are on WP LOOP
*/
echo get_the_post_thumbnail( $the_query->ID, array( 500, 400) ); 
/* USE get_the_post_thumbnail_url() to get only the image url */
?>