An Experts Guide To Featured Images for WordPress

by Blake Whittle | Feb 7, 2025 | Tutorials

You set a featured image, hit Publish, and the thumbnail on your blog page is a blurry 150 pixel square. Or it's cropped so the face is cut off. Or it's missing entirely, and the post shows a gray box. Then you share the link on Facebook and it grabs some random image from your sidebar instead.

Nothing is actually broken. The featured image is one image that WordPress, your theme and your SEO plugin each handle on their own terms, and they don't always agree. Here's the short version, then the steps to set it up and fix it when it goes wrong.

WordPress doesn't have one featured image size. Your theme decides how the featured image displays. So I upload one image at 1200 x 630 pixels, which is the size Facebook recommends for link previews, and let WordPress make the smaller copies your theme asks for. Facebook's minimum is 600 x 315 pixels, but the bigger size looks sharper on high resolution screens (Facebook's image guidelines).

  • Upload size: 1200 x 630 pixels (about a 1.91:1 ratio), saved as a JPEG for photos or a PNG for graphics.
  • Cropping: keep the important part of the image near the center, because your theme may crop it to a square or a different shape on archive pages.
  • Alt text: describe the image in plain words. It's what screen readers read, and what shows if the image doesn't load.
  • Social sharing: if the preview looks wrong, set a separate social image in your SEO plugin. I cover that below.

A featured image (also called a post thumbnail) is the main image you assign to a post, page or custom post type. Think of it as the cover of a book. WordPress and your theme use it wherever your content is listed: the blog page, category archives, related posts, sliders and, often, the preview image when someone shares your link on social media.

You set it once in the editor, and your theme decides where and how big it appears. That's also why changing themes can suddenly change how every featured image on your site looks.

  1. Open the post or page in the editor.
  2. In the settings sidebar, open the Post tab (or Page for pages) and find the Featured image panel.
  3. Click Set featured image. A window opens with two tabs, Upload files and Media Library.
  4. Upload a new image or pick one from your Media Library. In the Attachment Details on the right, fill in Alt Text so the image is described properly.
  5. Click Set featured image at the bottom of the window, then click Publish or Update.
WordPress editor screenshot showing the Set featured image button in the Featured image panel of the Post settings sidebar.

Don't see a Featured image panel? Your theme has to support featured images, and the panel can also be switched off in the editor's options. If it's missing, jump to Theme Related Issues below.

When you upload an image, WordPress keeps the original and also saves smaller copies of it. When your theme shows the featured image, it picks one of those copies by name. Unless the theme asks for something else, that's a size called post-thumbnail, which the theme registers itself (WordPress developer reference). That's the real reason there's no single "featured image size": every theme sets its own.

Default WordPress Image Sizes

WordPress ships with a handful of built-in sizes. These are the defaults from the WordPress source:

  • Thumbnail: 150 x 150 pixels, cropped to a square.
  • Medium: up to 300 x 300 pixels.
  • Medium large: 768 pixels wide, with no height limit.
  • Large: up to 1024 x 1024 pixels.
  • 1536 and 2048: two bigger sizes, 1536 x 1536 and 2048 x 2048.
  • Full: your original upload.

Notice the small "Thumbnail" size is not your featured image, even though the names sound the same. If your featured images look tiny and pixelated, your theme is probably asking for a size that's smaller than the space it fills.

You can change the thumbnail, medium and large sizes yourself:

  1. Go to Settings > Media in your dashboard.
  2. Change the width and height for the size you want.
  3. Click Save Changes.
WordPress Settings > Media screen showing the thumbnail, medium and large image size fields.

This only affects images you upload from now on. Existing images keep the sizes they were made with. To redo them, run a plugin like Force Regenerate Thumbnails from the Tools menu. Back up first, because regenerating rewrites your image files.

  • Featured images: the size your theme asks for, usually post-thumbnail, though themes can use any size they like.
  • Images inside your post: the size you choose in the block editor, picked from the sizes above.
  • Custom sizes: themes and plugins can add their own with add_image_size(), which is why a new theme can leave you with a pile of extra copies of every image.

Optimizing Images for Your WordPress Site

  • Compress images: a plugin like Smush or EWWW Image Optimizer shrinks file sizes without visible quality loss.
  • Responsive images: WordPress automatically adds the attributes that let browsers pick the right size for each screen, so you don't need to do anything here.
  • CDN delivery: serve the images from a network close to your visitors. Infinite Uploads does this from 119+ locations and takes the image load off your server.

You can see exactly how your link will look before anyone shares it. Paste your page URL into LinkedIn's Post Inspector, Facebook's Sharing Debugger or the X (Twitter) Card Validator. Facebook also says the crawler has to see an image once before it can render it, so running your URL through the debugger first pre-fetches it (Facebook docs). While you're there, double check your title tag too.

Link preview showing a blue Infinite Uploads featured image above the page title and domain.

Use 1200 x 630 pixels. Facebook recommends at least 1200 x 630 for the best display on high resolution devices, and the Rank Math docs recommend the same size for the Open Graph image. Open Graph is the set of tags (see ogp.me) that tells Facebook and other apps which image to show when your link is shared.

  • Ratio: 1200 x 630 is roughly 1.91:1, a wide landscape shape.
  • File type: JPEG for photos, PNG for graphics and screenshots.
  • Safe zone: keep text and faces away from the edges. Themes and social apps crop in different ways.

If your theme's featured image never looks right, you can register your own size. Add this to your child theme's functions.php so a theme update doesn't wipe it out:

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 1200, 630, true ); // featured image size, hard cropped
add_image_size( 'category-thumb', 300, 9999 ); // 300 wide, any height

The true at the end of set_post_thumbnail_size() means WordPress crops to exactly 1200 x 630 from the center. Leave it off and WordPress scales the image down instead (add_image_size reference). Either way, new sizes only apply to new uploads, so regenerate your existing images afterward.

Pick an Image That Matches the Content

A featured image is the first promise your post makes. If the image has nothing to do with what's inside, readers feel tricked and bounce. Pick something that says what the post is about at a glance.

Be Consistent

Use the same dimensions, style and color treatment across your posts. When every thumbnail is 1200 x 630 pixels, your blog page lines up cleanly and you never fight the theme's cropping.

Design for Impact

Clear subject, strong contrast, little text. If you add text, keep it big enough to read at thumbnail size, because it's often shown at a fraction of its real size.

Only use images you created, bought or have a license for. Free stock sites still have terms, so read the license before you publish. A copyright claim over a thumbnail is a headache you don't need.

Optimize for Speed

Featured images reload on every archive and category page that lists the post, so heavy files add up fast. Compress them before you upload, and size them for where they appear. My go-to guide is how to compress and optimize images for WordPress.

Add Alt Text

Alt text is a short written description of the image. It helps screen reader users and shows up when an image fails to load. Google's advice is to write useful, specific alt text that fits the page, and to avoid stuffing it with keywords (Google image guidelines). "Dalmatian puppy playing fetch" beats "puppy dog pup puppies" every time.

WordPress reads the featured image's alt text from its Media Library entry, so set it in Attachment Details when you pick the image, or edit it later in the Media Library.

Use Relevant File Names

Name the file before you upload it. wordpress-featured-image-size.jpg tells Google and people what the image is. IMG_4021.jpg doesn't. Google recommends short, descriptive file names for the same reason.

Optimize for Social Sharing

Search is one door. Social is the other. Use a 1200 x 630 image, and check it in the debuggers I listed earlier. If the preview is wrong, the fix is in the social sharing section below.

  • Image is relevant to the post.
  • Uploaded at 1200 x 630 pixels, with the subject near the center.
  • Compressed, and saved as a JPEG or PNG.
  • Descriptive file name.
  • Alt text filled in.
  • Previewed in at least one social debugger.

Wrong Image Size

If the featured image looks stretched, blurry or oddly cropped, the file doesn't match the size your theme wants. Upload a larger image at the right ratio, or register a custom size as shown above. If you changed your sizes in Settings > Media or added new ones, regenerate your thumbnails so old images get the new sizes.

Missing Image File

A gray box or broken image icon usually means the file is gone or the link to it is wrong. Open the Media Library and check that the image loads. If it doesn't, upload it again and set it as the featured image. This often happens after a site move or a restore from backup.

A theme has to turn featured images on with add_theme_support( 'post-thumbnails' ) before the panel shows up in the editor (theme handbook). To test your theme, switch to a default WordPress theme for a minute. If the image shows up there, the problem is your theme's templates or its image sizes.

Plugin Conflicts

Optimization, caching, lazy load and page builder plugins all touch images. Deactivate them one at a time, reload the page, and see which one changes the result. When you find it, check its image settings before you give it up.

Lazy Loading

WordPress has lazy loaded images by default since version 5.5 (WordPress reference). If you also run a plugin that adds its own lazy loading, the two can clash and leave the featured image blank until you scroll. Turn off lazy loading in one of them and test again.

Permission Issues

If new uploads fail or images don't show, check file permissions. WordPress recommends 644 for files and 755 for directories (WordPress hardening guide). Your host's file manager or an FTP app can change them for the wp-content/uploads folder.

Cache Problems

Changed the image but still see the old one? Clear your caching plugin, your host's cache and your CDN cache, then hard refresh your browser. For social sharing, the old image can stick around at Facebook until you re-scrape the URL in the Sharing Debugger.

Sharing a post and getting a wrong, cropped or missing thumbnail is frustrating. The reason is usually Open Graph. Your SEO plugin writes an og:image tag, and Facebook, WhatsApp, iMessage, Reddit and others read it. In Yoast SEO, a social image you set on the post comes first, and the featured image is used if you haven't set one (Yoast docs). Rank Math follows a similar order (Rank Math docs).

So if your featured image is wrong for social, you don't have to change the featured image. Just set a social image in your SEO plugin.

The Social tab highlighted in the Yoast SEO meta box, next to the SEO, Readability and Schema tabs.

Setting a Social Image in Yoast SEO

  1. Open the post or page in the editor.
  2. Scroll to the Yoast SEO box and click the Social tab.
  3. Upload or select the image you want shown when the post is shared. Use 1200 x 630 pixels.
  4. Optionally, set a custom social title and description.
  5. Click Update or Publish.
Animated walkthrough of setting a social image in the Social tab of the Yoast SEO meta box.

Setting a Social Image in Rank Math

  1. Open the post or page in the editor.
  2. Open the Rank Math panel and click the Social tab.
  3. Upload the image for Facebook (and X if there's a separate field). Use 1200 x 630 pixels.
  4. Use Rank Math's preview to see how the post will look when shared.
  5. Click Update or Publish.

Then run the URL through the debuggers above. A custom social image means no more random sidebar pictures and no more blank previews.

You can fix most featured image problems by hand. If you're managing hundreds of posts, a plugin saves hours. These are the ones I'd look at, all from the WordPress.org directory.

Featured Image from URL (FIFU) plugin page on WordPress.org.

Best for: sites that use images hosted elsewhere. FIFU lets you use a remote image as the featured image of a post, page or custom post type, so you don't have to upload it to your Media Library. The trade-off is that if the remote image disappears, so does your featured image.

Best for: bulk changes. It sets, replaces and removes featured images for lots of posts at once, and you can filter which posts it touches.

Best for: fixing blank thumbnails. You pick a fallback image on the Media settings page, and it shows up for any post that doesn't have its own.

Auto Featured Image (Auto Post Thumbnail)

Best for: sites where people keep forgetting to set one. It can assign images already inside your posts as featured images, and generate images from post titles, in bulk.

How to Choose the Right Plugin

  1. Images live on another site or CDN: Featured Image from URL.
  2. You need to change featured images on lots of posts: Quick Featured Images.
  3. You want one fallback for every post without an image: Default Featured Image.
  4. You want missing ones filled in automatically: Auto Featured Image.

And if you changed sizes and need every old image redone, that's Force Regenerate Thumbnails (mentioned earlier) or Regenerate Thumbnails.

Featured images are usually the biggest files on your blog page and archive pages, because they load once per listed post. Here's what actually helps:

  • Compress: shrink files before or at upload. See this compression guide.
  • Right-size: don't upload a 5000 pixel wide photo when 1200 does the job. WordPress image sizes quietly eat storage, too.
  • Cache: a caching plugin stops browsers and servers from refetching the same files.
  • Use a CDN: serve images from a location near each visitor instead of your web host.

Next-gen formats matter here too. AVIF and WebP files are smaller than JPEG and PNG at similar quality. Tools that convert at upload only cover images you upload after installing them, and on an older blog that leaves most of your featured images untouched. Infinite Uploads converts to AVIF or WebP at delivery instead, so your whole archive is covered, your originals stay untouched, and nothing extra gets stored. That's the Image Optimization feature, and it's included on Business plans.

Infinite Uploads setup screen

Infinite Uploads

Offload, organize, and deliver your WordPress media from one plugin: cloud storage, video streaming, image optimization, and a global CDN, with no per-site limits.

See Pricing

The size, the crop and the social preview are the quick fixes. The bigger win is making sure every image on your site loads fast no matter where your visitor is. Infinite Uploads moves your Media Library onto cloud storage and serves it from a CDN with 119+ locations, so your server stops carrying the weight of every thumbnail.

Plans start at $8.25/mo billed yearly ($99/yr) for 25 GB of storage and 50 GB of CDN bandwidth, and you can try any plan free for 7 days. There's no contract, and the plugin is free.

Recent Post

Infinite Uploads Black Friday: 50% off your first year with code BFCM50OFF

Newsletters

Written By: Blake Whittle

Owner of ClikIT, Blake has been involved in WordPress since 2014. Once designer & developer, now he manages the team at ClikIT and provides project management & strategic vision to their clients. Now, he's leading the change at ClikIT to become a plugin company.

Create Your Account And Start Exploring

Try the Infinite Uploads plugin and discover all its benefits. By registering, you'll gain access to technical support, receive updates, and enjoy exclusive content. Don't wait any longer and join us today!