get_the_post_thumbnail()
具有多个筛选器。只需在你的职能范围内使用它们。php文件来捕获它们:
$size = apply_filters( \'post_thumbnail_size\', $size );
do_action( \'end_fetch_post_thumbnail_html\', $post_id, $post_thumbnail_id, $size );
return apply_filters( \'post_thumbnail_html\', $html, $post_id, $post_thumbnail_id, $size, $attr );
否则你还可以和我一起去
»Dynamic image resize« plugin.