📜  wordpress 获取帖子缩略图 url - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:12.655000             🧑  作者: 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 */
?>