How to get WordPress post thumbnail of single post ?

Retrieving WordPress post thumbnail can be done with the help of WordPress prebuilt function the_post_thumbnail() which is pretty used in almost all themes

Get WordPress post thumbnail

In order to retrieve the thumbnails ,copy and paste the respective code snippets into the theme and place it in the respective block.

  1. To get post thumbnail of fullsize
    the_post_thumbnail( 'full' );
  2. To get post thumbnail of thumbnail
    the_post_thumbnail( 'thumbnail' );
  3. To get post thumbnail of large
    the_post_thumbnail( 'large' );
  4. To get post thumbnail of medium
    the_post_thumbnail( 'medium' );
  5. To get post thumbnail of medium large
    the_post_thumbnail( 'medium_large' );

Customizing the post thumbnail can be found in the following article.

thumbnail,wordpress