WordPress open graph tags are snippets of meta code that tell social platforms which title, description, and image to show when someone shares your page. Without them, Facebook, LinkedIn, and other networks guess, often grabbing a random image or the wrong text, and a sloppy share preview gets far fewer clicks. I’ve watched well-written posts flop on social simply because the preview pulled a sidebar logo instead of the featured image. Setting these tags deliberately takes minutes and protects every share your content earns.
This guide explains what WordPress open graph tags do, how WordPress and your SEO plugin handle them, how to set and customize them, and how to test that they work. You’ll work in your SEO plugin and a browser, and the whole check takes under half an hour. Be clear-eyed about the payoff, though: these tags won’t move your Google rankings directly, but they decide whether your social traffic grows or stalls.
What WordPress Open Graph Tags Do
WordPress open graph tags control how your content appears on social media, and that appearance drives the click. The Open Graph protocol, created by Facebook, lets you specify the exact title, description, and thumbnail a platform displays, so your share looks intentional rather than scraped. A clean, compelling preview earns more clicks, and those clicks bring referral traffic that supports your wider reach.
The SEO connection is indirect, and honesty about that matters. Open graph tags are not a Google ranking factor, so anyone promising they boost rankings is overselling, but the social traffic and engagement they generate feed signals that do count. Strong share previews amplify a smart content distribution strategy, turning each post into more visits than organic search alone would deliver.
The image tag does the heaviest lifting. Most social engagement on a link comes from the thumbnail, so a correctly sized, relevant image is the single highest-impact tag you’ll set. Get that one right, and your shares stop looking like accidents. A blurry or off-topic thumbnail, by contrast, tanks the click rate no matter how strong your headline reads.
How WordPress Sets Open Graph Tags Automatically
Most WordPress sites get open graph tags from an SEO plugin rather than core, and knowing the default saves you needless work. WordPress core does not output open graph tags on its own, so without a plugin your pages ship none, which is why bare installs preview so poorly. RankMath and Yoast both add the full set automatically once you enable them.
RankMath and Yoast pull the title, description, and featured image into the tags by default, mapping them from the fields you already fill in. A post with a strong title, a written meta description, and a featured image usually previews correctly with no extra effort, the same way the rest of your WordPress SEO settings work once configured. Confirm the social settings are switched on, since some setups leave them off.
The defaults still need a sanity check on key pages. A missing featured image leaves the og:image tag empty, and an overlong title can get cut in the preview, so the automation is only as good as the fields feeding it. Yoast’s guide to open graph tags walks through the exact fields each platform reads, which helps when a preview looks wrong. It’s worth checking your three or four most-shared posts by hand, since those are the ones earning the social clicks you don’t want to waste.
How to Set and Customize Your Open Graph Tags
You customize WordPress open graph tags per page when the default title, description, or image doesn’t serve the share. In RankMath or Yoast, open the post editor, find the social tab, and you’ll see fields to override the social title, social description, and social image independently of the SEO versions. Filling these lets you write copy tuned for a scrolling feed rather than a search result.
- Social title – Write a punchier headline than your SEO title, since it competes with feed updates, not ranked search results.
- Social description – Summarize the hook in one sentence, because most platforms show only a short preview line.
- Social image – Set a dedicated 1200 by 630 pixel image whenever the featured image doesn’t read well as a card.
The image deserves the most attention, since its dimensions decide whether it displays well. Use a landscape image around 1200 by 630 pixels so it fills the preview card without cropping awkwardly, and keep important detail away from the edges. This is the same filename-and-alt discipline covered in image SEO for WordPress, applied to the social thumbnail.
Write the social copy for the platform, not the search engine. A social title can be punchier and more curiosity-driven than your SEO title, because it competes with personal updates in a feed rather than ten ranked results. Set these overrides only on pages you actively promote, and let the automatic tags handle the rest. There’s no need to hand-tune every post, since the defaults cover the long tail of pages nobody shares anyway.
How to Test Your Open Graph Tags Work
Testing WordPress open graph tags takes minutes and catches the errors that quietly kill your share clicks. Use a platform’s official sharing debugger, paste your URL, and it shows the exact title, description, and image that network will display. Run a post, a page, and your homepage, since each can behave differently.
The debugger also exposes caching problems, which trip up most people. Social platforms cache your preview, so a tag you fixed an hour ago may still show the old version until you force a refresh in the debugger, a step that fools many site owners into thinking their fix failed. Clear the cache there, then re-share to confirm.
Make this check part of your routine after structural changes. Switching themes, changing your featured image setup, or updating your SEO plugin can all alter open graph output, so a quick test after each change keeps a broken preview from spreading. A two-minute test now saves you from a month of flat share previews later. Set the tags, verify them in the debugger, and every share of your content shows up looking the way you intended.

