What image WordPress shows on preview is decided by your SEO plugin. WordPress core prints no Open Graph image tag at all, and Facebook, LinkedIn and X read that tag to build the link card. With Yoast SEO or Rank Math, a per-post Social image wins first and the featured image comes second.
That is why a store owner can set a perfect featured image and still see a random picture on Facebook. Either no plugin prints the tag or the platform is still showing a cached copy. We checked the Yoast SEO and Rank Math docs and Meta’s sharing guide in October 2026 for this update.
This guide covers the real priority order and the steps to set the image in Yoast SEO and Rank Math. It also covers the right image size and how to clear a stale preview.
What Image WordPress Shows on Preview by Default?

WordPress itself picks no preview image, because core prints no og:image tag. Your SEO plugin prints that tag and chooses the image in a fixed order. In Yoast SEO the order below comes from Yoast’s own Open Graph specification, checked in October 2026:
- The Social image you set on the post in the SEO plugin’s Social tab.
- The featured image of the post or page.
- A prominent image from the post content.
- The default social image for that content type in the plugin’s templates.
- The site-wide default image in the plugin’s settings.
Rank Math follows the same idea. Its Social tab image beats the featured image, and a site-wide OpenGraph Thumbnail catches the rest. With no SEO plugin there is no og:image tag at all. Each platform then guesses or shows a bare title and link. To keep the image in previews and hide it on the post, see how to hide the featured image.
Ecommerce sites running WooCommerce follow a slightly different path for product pages, which we cover in a dedicated section further down.
Where This Setting Lives
If you are curious what is happening behind the scenes, the featured image is stored as a post meta value called _thumbnail_id. It points to an attachment in your media library. The Open Graph image lives separately, inside your SEO plugin’s own post meta fields.
That separation is why the two can disagree. Say you filled in the Social image once and later changed the featured image. Facebook and LinkedIn keep showing the old Social image while your site looks correct. Knowing these are two different settings saves a lot of confused troubleshooting.
How to Control the Preview Image in WordPress
To control what image WordPress shows on preview, install an SEO plugin and set a featured image on every post. Use the plugin’s Social tab when you need a different image for sharing. Then test the link, clear any cached copy and add a site-wide default image.
Before You Start: What You Need
You do not need to touch a single line of code for any of the steps below. Here is what helps:
- Admin access to your WordPress dashboard.
- An image at least 1200 by 630 pixels in JPG or PNG format.
- An SEO plugin installed. This guide shows Yoast SEO step by step and the matching Rank Math fields.
- Five minutes per post once you know where to click.
If you are brand new to the WordPress dashboard, start with our guide on what WordPress is. It covers the basics of the editor screen this guide references throughout.
Step 1: Set a Featured Image in the WordPress Block Editor
With an SEO plugin active, the featured image is the picture most shares use. Start here.
- Open the post or page you want to edit. From your dashboard, go to Posts or Pages and click the title of the post you want to fix.

- Open the Post settings panel. Look at the top right of the editor screen.

- In the sidebar, find the Featured image panel.
- Click Set Featured Image. A media library window opens. Upload a new image or pick one you already have on file.

- After upload, Update or publish the post so the change saves.

SEO plugins use that thumbnail for sharing whenever no Social image is set. Get it right and most of your posts are covered.
One habit worth building: pick the featured image before you write the rest of the post. Writers who add it last tend to grab whatever image is already open in another tab, and it rarely matches the aspect ratio you actually need.
Note: Your theme might crop the featured image into an awkward square on the homepage. Do not fight your theme’s CSS for that. Upload a wide 1.91:1 version as the Social image in Step 3 and leave the featured image as your theme needs it.
Step 2: Check Your Theme’s Featured Image Support
Not every theme is built the same way. This step catches a missing Featured image panel before you blame the SEO plugin.
Confirm your theme supports featured images. Almost all modern themes do, but older or heavily customized themes sometimes turn the feature off. If the Featured image panel is not showing, try these fixes:
- Check Preferences if the panel is missing. Open the three-dot menu in the top right of the editor and go to Preferences > Panels. Confirm Featured image is turned on.

- Regenerate thumbnails after a theme switch. If you recently changed themes, your old featured images may display at the wrong crop or size. A plugin like Regenerate Thumbnails fixes this without re-uploading every image by hand. WordPress.com’s own featured image documentation covers theme-specific display quirks in more depth if yours still looks off after this step.

Step 3: Set an Open Graph Image With an SEO Plugin
Your featured image is the base layer. An SEO plugin lets you override it for social sharing, useful if you want a different crop or a version with text overlay for Facebook and LinkedIn.
This is also where most confusion starts. A filled Social image always beats the featured image for that post. Leave it empty and the featured image takes over again.
- Go to Plugins > Add Plugin in your WordPress dashboard.

- Install and activate the Yoast SEO plugin from the plugin directory.

- After activation, go to Posts > All Posts and open the post you want to edit.

- Scroll down to the Yoast SEO box under the editor. Open the Social tab and upload your picture under Social image.

- Finally, save the post from the top right corner.

In Rank Math the same field sits in the post editor. Open the Rank Math panel from the top bar, go to the Social tab and add an image under Facebook. Rank Math’s Open Graph help page sets the site-wide fallback at Rank Math SEO > Titles & Meta > Global Meta > OpenGraph Thumbnail.

In both plugins a filled Social image overrides the featured image. Leave it blank to fall back to the featured image.
Step 4: Use the Right Image Size and Aspect Ratio

A correctly sized image prevents cropping and blur. Meta’s guide to images in link shares gives these numbers as of October 2026:
- Size: Use at least 1200 × 630 pixels for sharp display. Meta treats 600 × 315 as the floor for large link previews.
- Shape: Stay close to a 1.91:1 aspect ratio so Feed shows the full image without cropping.
- File size: Meta caps the file at 8 MB. Keep it under 1 MB so it loads fast.
- Text: Avoid tiny text. It becomes unreadable once shrunk to a feed thumbnail.
Step 5: Test Your Preview Image Before You Publish

Platforms cache the preview the first time a link is shared. Test the link before you share it anywhere.
Open Meta’s Sharing Debugger, paste your URL and click Debug. For LinkedIn, the Post Inspector does the same job and shows the image LinkedIn will use.
Step 6: Fix a Wrong or Cached Preview Image
If the old image still shows after you’ve fixed everything, it’s almost always a caching issue.
- Run the Sharing Debugger again and click Scrape Again.

- Add a query string like
?v=2to your URL to force platforms to treat it as new.
- Clear your WordPress caching plugin (for example WP Super Cache). Cached HTML can still serve an old
og:imagetag.
Step 7: Set a Site-Wide Default Preview Image
Catch posts that slip through without a featured image.
- Open your SEO plugin’s settings. In Yoast SEO go to Yoast SEO > Settings > Site basics. In Rank Math use the OpenGraph Thumbnail field from Step 3.

- Upload a branded fallback image at 1200 × 630.

- Save all the changes at the end.

Controlling Preview Images for WooCommerce Products
WooCommerce product pages follow the same rules with one twist. The main product image is saved as the product’s featured image. A standard post sets that field by hand.
SEO plugins then use that main product image for sharing like any post. If you want a different image for social sharing, the SEO plugin’s Social tab works the same way as in Step 3. It just lives on the product edit screen.
For stores running promotions or seasonal campaigns, our WooCommerce SEO guide covers how preview images tie into broader product page optimization. It also covers schema markup that helps Google pull the right thumbnail into search results.
Product galleries also bring a variation problem. If a shopper shares a link to a specific color or size variation, the preview still shows the parent product’s main image. Changing that needs custom code that sets the Open Graph image per variation. Most stores do not need it on day one.
Does the Preview Image Affect SEO?
Not directly. The preview image mainly shapes how a shared link looks. Google’s image SEO guide does say an og:image tag or the schema.org primaryImageOfPage property can steer which image Google shows for a page.
Where it does matter is indirectly. A weak or missing preview image makes a shared link easier to scroll past. Fixing it is mostly a click problem, and your posts look more professional as a bonus.
Common Preview Image Problems and Quick Fixes
Use this list as a quick reference when a preview looks wrong:
- Wrong image showing on Facebook: Cached data. Run the Sharing Debugger and click Scrape Again.
- Blurry preview: The source image is too small. Re-upload at 1200 by 630 pixels or larger.
- No image next to the result on Google: Google picks that image on its own. Add an og:image tag through your SEO plugin and make sure robots.txt does not block the image file.
- Image cropped oddly: Aspect ratio mismatch. Stick to 1.91:1 and avoid square or portrait images for social previews.
- Different images on different platforms: Expected behavior if you set separate Facebook and X images in your SEO plugin. It is not a bug.
- Wrong picture in Appearance > Themes: That thumbnail is the theme’s
screenshot.pngfile and it never appears in link previews. The Theme Handbook sizes it at 1200 × 900. - Wrong icon in the browser tab: That is the Site Icon and it has its own setting. Learn how to change the favicon in WordPress.
- Wrong text under the link: That text comes from the SEO plugin’s description or the post excerpt. Learn how to disable auto excerpt in WordPress if it cuts posts short.
Conclusion
What image does WordPress show on preview? None on its own. Your SEO plugin decides and uses the Social image first and the featured image second. After that come an image from the content and your site default.
Here is a quick checklist to keep your previews right:
- Set the featured image on every post before you publish.
- Use your SEO plugin’s Social tab whenever you need a different crop for sharing.
- Test the result with the Sharing Debugger or Post Inspector before you consider the job done.
- Set a site-wide fallback image so nothing slips through unbranded.
Skip the testing step and you are trusting a cache that may not reflect your change. A five minute check with the Sharing Debugger catches most problems before anyone sees them.
Frequently Asked Questions (FAQs)
Q1. Does WordPress automatically create a preview image?
No. WordPress core does not create a preview image or print an og:image tag. An SEO plugin such as Yoast SEO or Rank Math adds the tag. It uses your Social image first and the featured image second.
Q2. What is the best image size for a WordPress preview image?
Use 1200 by 630 pixels at a 1.91:1 aspect ratio. Meta recommends this size for sharp link previews on Facebook.
Q3. Why does my WordPress post show no image on Google search?
Google chooses that image automatically from several sources. Add an og:image tag through your SEO plugin and use a large image that represents the page. Make sure robots.txt does not block the image file.
Q4. Can I use a different preview image for Facebook and Twitter?
Yes. Most SEO plugins let you set separate images per platform under their Social settings tab, covered in Step 3 above.
Q5. Does changing the featured image update old social media shares automatically?
No. Platforms cache preview data once a link is shared. Refresh it with Meta’s Sharing Debugger or LinkedIn’s Post Inspector after you change the image.
Q6. Do I need a plugin to control the WordPress preview image?
In practice, yes. WordPress core prints no Open Graph tags. Without a plugin each platform guesses which image to use. Yoast SEO or Rank Math adds the tag from your featured image and lets you override it.
