サムネイルの画像のURLのみを出力するテンプレートタグです。
the_post_thumbnail_url()
サムネイルの画像のURLはthe_post_thumbnail_url()で取得できます。下記のように使います。
<img src="<?php echo the_post_thumbnail_url(); ?>" alt="">
不要な情報が出力されないのがすごくいいです!
公式リファレンス
詳細は下記の公式リファレンスをご参照ください。
https://developer.wordpress.org/reference/functions/the_post_thumbnail_url/