In some where we need only thumbnail source link the function the_post_thumbnail cannot return thumbnail source link, we ca two ways to get thumbnail src.
1. wp_get_attachment_thumb_url
[php]
$post_id = get_the_ID();
$size = ‘thumbnail’;
$thumb_src = wp_get_attachment_thumb_url(get_post_thumbnail_id($post_id),$size);
echo ‘<img src="’.$thumb_src.’" />’;
[/php]
2. get_attachment_src
[php]
$post_id = get_the_ID();
$size = ‘thumbnail’;
$thumb_arraydata = wp_get_attachment_image_src(get_post_thumbnail_id($post_id),$size);
$thumb_src = $thumb_arraydata[‘0’];
echo ‘<img src="’.$thumb_src.’" />’;
[/php]