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.
- To get post thumbnail of fullsize
the_post_thumbnail( 'full' );
- To get post thumbnail of thumbnail
the_post_thumbnail( 'thumbnail' );
- To get post thumbnail of large
the_post_thumbnail( 'large' );
- To get post thumbnail of medium
the_post_thumbnail( 'medium' );
- 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