
Theme authors add featured image support to their themes by adding a simple code snippet to their theme’s functions.php file. They also decide the size and style of the images and how they will be displayed.

In WordPress, a featured image is the primary image for a blog post. They often appear next to each post’s heading on your home page and social media.
Featured images help you build user engagement and increase pageviews. Search engines and social media websites may also use these images and display them in search results and social media news feeds.
Featured images are often used for blog posts, but you can also set featured images for pages and custom post types.