WordPress | get_the_post_thumbnail() Function
The get_the_post_thumbnail() is a WordPress builtin function to retrieve the post thumbnail. When a theme adds ‘post-thumbnail’ support, a special ‘post-thumbnail’ image size is registered, which differs from the ‘thumbnail’ image size managed via the Settings > Media screen.
When using the_post_thumbnail() or related functions, the ‘post-thumbnail’ image size is used by default, though a…
View On WordPress











