When displaying the featured image, is has_post_thumbnail() necessary?
That kind of detail isn’t likely to be in formal documentation, so the best thing to do is just look directly at the source code. Here it is with the irrelevant parts removed: function the_post_thumbnail( $size=”post-thumbnail”, $attr=”” ) { echo get_the_post_thumbnail( null, $size, $attr ); } /** * Retrieve the post thumbnail. * @return string … Read more