📜  wp+get 特征图 - PHP 代码示例

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

代码示例3

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