Free tools Windows power users keep installed
One-click scans. No signup required.
To set the image that appears when a WordPress page is shared, configure its Open Graph image—not just its featured image. With Yoast SEO, enable Open Graph data, then set a social image on the individual post or page if you want to override the site’s fallback. Yoast gives that per-page social image priority over the featured image.
How WordPress chooses an Open Graph image
Open Graph tags are metadata in a page’s HTML head. A tag such as og:image identifies an image that a social or other sharing service can use in a link preview. Yoast says its Open Graph data is consumed by Facebook, Pinterest, LinkedIn, WhatsApp, and Google; each service may decide how to display a shared page.
The image selection is a fallback sequence, not a guarantee that the WordPress featured image always wins. In Yoast’s documented order, a social image set on the post or page has the highest priority. If there is no social image, Yoast can use the featured image, then a prominent image in the content, and then a template or sitewide default. The sitewide image is a fallback: it does not necessarily replace an image selected for a particular post.
- Want a specific image for one article? Set that article’s social image.
- Want a default for pages without a suitable image? Configure the sitewide default.
- Already set the featured image? Check the social image field and the page’s generated tags before changing it.
Enable Open Graph data in Yoast SEO
In the current Yoast documentation, the setting is here:
- In the WordPress Dashboard, open Yoast SEO → Settings → Site features → Social sharing.
- Turn Open Graph data on.
- Click Save changes.
Yoast says Open Graph data is enabled by default, but confirm the setting in your own installation. A site can have a different configuration because of its installed version, a previous change, or another plugin or theme handling social metadata. If the label or location differs, use the settings search or the documentation for the Yoast version shown on your site rather than assuming the option is missing.
Enabling this feature allows Yoast to output Open Graph metadata. It does not select the image you want for every post; that is controlled by the page-level image and fallback options below.
Set an image for one post or page
- In the WordPress Dashboard, open the post or page you want to share.
- Find the Yoast SEO social or Facebook image control in the editor. The exact panel presentation can vary by WordPress editor and plugin release.
- Choose or upload the image intended for that specific page, then update or publish the page.
- Check the page’s generated Open Graph tags to confirm the intended image is now the selected value.
This social image is the right control when the shared preview should use a different image from the one displayed as the page’s featured image. In Yoast’s documented selection order, the custom social image takes priority. If you leave it unset, Yoast may fall back to the featured image, a prominent image in the content, or a default.
Rank #2
For a listing page whose featured image should also be the shared image, first check whether the social field is empty or contains an older choice. If an existing social image is set, changing the featured image alone may not change the Open Graph result. Clear or replace the social image deliberately, then inspect the generated tags again.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Choose a sitewide default image
Yoast documents the default image control at SEO → Social → Facebook → Default image. Add the fallback image there and save the setting. Interface labels and paths can vary between releases, so if that exact route is not present, check the current settings for the installed version.
A default is useful for pages that lack a more specific image. It should not be treated as a command to override every post’s chosen social image: the per-page choice has higher priority in Yoast’s documented hierarchy. Yoast also describes social defaults in templates, which can provide another fallback depending on the configuration.
Before relying on the default, inspect a page that has no social image, featured image, or prominent content image and check which URL its og:image tag contains. Then separately inspect a page with a deliberately selected social image. Those two checks show whether the fallback and the page-specific choice are behaving as intended.
Check which plugin or theme emits the tags
If the wrong image appears, first determine what the page actually outputs. More than one plugin or a theme can emit Open Graph metadata. Yoast warns that duplicate Open Graph tags can lead sharing services to display an incorrect image, title, or description. Two competing emitters make it harder to identify which value a service is using.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
- Open the published page, not only the editor preview.
- View the page source and search for
og:image. Note whether there is one image tag or several, and check the associated Open Graph title and description while you are there. - Identify whether Yoast, another SEO or social plugin, or the theme is providing the tags.
- Choose one active source of Open Graph output. If another plugin or theme is duplicating Yoast’s tags, disable its Open Graph output rather than leaving two emitters to compete.
- Reload the published page source and confirm the duplicate output is gone and the intended image URL remains.
Do not switch plugins simply because a sharing preview looks wrong. First trace the actual tag and its source; the issue may be a higher-priority per-page social image, duplicate output, or a stale preview rather than the featured image itself.
Rank #4
Other plugin approaches and developer overrides
The WordPress.org Open Graph plugin documents a different image fallback order: featured image, then content images, then attached images, with the site icon, custom logo, or header image as later fallbacks if no image is found. Its documentation also says that while the plugin is active, it disables Jetpack’s Open Graph output to avoid duplicate tags. That is the behavior documented for that plugin; do not assume another plugin handles conflicts in the same way.
Rank Math documents developer filters for changing image output and fallback behavior. The available filter names and implementation depend on its own documentation, so do not paste a filter from another SEO plugin into a Rank Math site.
For a developer working with Yoast, the wpseo_opengraph_image filter can replace an existing image value when the filter returns a new image. Yoast’s documentation says it does not create an image when no image exists. In practice, an override is appropriate only when the normal editor or fallback controls do not express the desired rule. Confirm that the page already has a value to replace, and verify the resulting page output after the change.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesBest Value
Verify the result and diagnose a stale preview
Separate two problems: the HTML may contain the wrong image, or the HTML may be correct while a sharing service continues to show an older preview. Inspecting the page’s current source distinguishes them.
- The page source has the wrong
og:imageURL: revisit the social image field, fallback order, and duplicate emitters. - The page source has the right URL, but a previously shared link still looks old: the external preview may be stale. A crawler or cache refresh may be relevant, but available procedures differ by service and a current platform-specific refresh process is not established here.
- The image URL is right but the preview is unexpected: confirm the URL points to the intended file and that it is the image you selected. A tag identifies the image URL; it cannot make a different file at that URL show the intended artwork.
Do not infer that WordPress failed to save the setting just from an old social preview. First reload the page source and check the current metadata. If that is correct, the unresolved part is downstream of WordPress.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Image dimensions and format: avoid treating a rule of thumb as a standard
A WordPress support answer recommends an image near 1200 × 630 pixels and JPEG, GIF, or PNG. That is community guidance, not a verified current requirement shared by all social platforms. The official materials examined for this topic do not establish one authoritative, current cross-platform size or format rule.
Use an image that suits the page and check the requirements published by the specific service where the link will be shared if its exact display dimensions matter. Do not assume that every service will crop, scale, or present the same source image identically.
Or skip the browser setup
ScreenshotNeo does not set WordPress metadata or choose an og:image value. It can help you capture a rendered page for a separate visual check; use the WordPress settings and inspect the page metadata to configure the social image. A single request looks like this:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://your-wordpress-site.example/your-page/ -o shot.webp
See the ScreenshotNeo API documentation for the request options. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture, and each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing; the response reports the page verdict and billing status. It also has an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents, including Claude, Cursor, and other MCP clients.
The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Those plan prices and allowances are the listed ScreenshotNeo terms, not a promise about WordPress preview behavior. Learn about ScreenshotNeo, or sign up free for 1,000 screenshots a month with no card.
Quick Recap
Common problems and fixes
- The featured image is correct, but the preview uses another image. Check the Yoast social/Facebook image field first; its custom image can outrank the featured image. If that field is empty, check the rest of the fallback sequence.
- The site logo appears instead of the post image. Inspect the page’s
og:imagetag and the selected social image. If a sitewide default or another plugin is supplying the image, set the intended page-level social image and remove competing Open Graph output. - There are several
og:imagetags. Find all plugins and the theme that emit Open Graph metadata, then leave one active emitter. Duplicate tags can produce incorrect preview details. - There is no Open Graph image tag. Confirm Open Graph data is enabled and check whether the page has an image in the applicable social field or fallback sources. Yoast’s developer image filter replaces an existing value; it does not create a missing one.
- The page source is correct but the share preview is not. Treat this as a potentially stale external preview, not proof that the WordPress setting failed. Platform-specific refresh instructions are outside what is established here.
- A tool reports a missing
fb:app_id. Yoast says this warning is not a blocker for displaying shared content and recommends ignoring it for that purpose.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

