How to set Post Thumbnail (Featured image)?

Question & AnswerCategory: General QuestionsHow to set Post Thumbnail (Featured image)?
Thanh Luu Staff asked 4 years ago

Post Thumbnail is a theme feature introduced with Version 2.9. Thumbnail is an image that is chosen as the representative image for Posts, Pages or Custom Post Types. The display of this images is up to the theme. This is especially useful for “magazine-style” themes where each post has an image.
Enabling Support for Post Thumbnails
Themes have to declare their support for post images before the interface for assigning these images will appear on the Edit Post and Edit Page screens. They do this by putting the following in their functions.php file:
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
}

Setting a Post Thumbnail
If your theme was successful in adding support for Post Thumbnails the “Featured Image” metabox will be visible on the on the Edit Post and Edit Page screens. If it isn’t, make sure “Featured Image” is enabled in the screen options on the top right.

After clicking the “Set featured image” link follow the same steps as inserting images in Posts and Pages. But instead of the “Insert into Post” button use the “Use as featured image” link next to it, to set the Post Thumbnail.