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

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

代码示例4

   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 */
?>