Fix WordPress Site Preview Not Showing on Social Media (OG Tags Issue)

WordPress site preview not showing on social media graphic illustration with OG tags example

Trying to share your WordPress link on Facebook, Twitter, or WhatsApp but getting no preview, no image, or a broken title? You’re not alone. If your WordPress site preview is not showing on social media, the culprit is almost always a missing or incorrect Open Graph (OG) tag.

This guide will walk you through fixing the problem — whether you want to solve it manually, use a plugin, or just understand what’s going wrong under the hood.


🔍 What Causes WordPress Link Preview Not Showing on Social Media?

When you paste a URL into a social media platform, it sends a crawler (like Facebook’s facebookexternalhit) to fetch metadata — specifically Open Graph (OG) and Twitter Card meta tags.

🛑 If OG tags are missing or misconfigured, the preview fails.

Here are the most common causes:

  • OG meta tags not present in your theme’s <head>
  • Image URLs are broken or not large enough
  • Plugins conflicting or stripping header tags
  • Cache or CDN issues (e.g., Cloudflare not purged)
  • Facebook or Twitter cached the URL too early

✅ Quick Fix Using a Plugin (Yoast SEO / Rank Math)

1. Enable OG Tags in Your SEO Plugin

For Yoast SEO:

  • Go to SEO → Social
  • Enable Add Open Graph meta data

For Rank Math:

  • Go to Rank Math → Titles & Meta → Global Meta
  • Enable Open Graph Meta

2. Add Facebook Image, Title, and Description

  • Edit your post
  • Scroll to the SEO plugin panel
  • Click on the Social tab
  • Upload image, customize title + description

✅ Make sure your OG image is at least 1200x630px — otherwise it won’t show correctly on most platforms.


🛠️ Manual Fix: Add Open Graph Tags to <head> in Theme

If you’re not using an SEO plugin, or want tighter control, add this to your header.php (inside your child theme):

<meta property="og:title" content="Your Post Title Here" />
<meta property="og:description" content="Short description about the post" />
<meta property="og:image" content="https://yourdomain.com/path-to-image.jpg" />
<meta property="og:url" content="https://yourdomain.com/your-post" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Your Site Name" />

💡 You can even make this dynamic using WordPress functions like get_the_title()get_the_excerpt(), and get_permalink().

🧪 Testing Your OG Tags

Once you’ve added your OG tags, make sure they’re being picked up correctly.

✅ Facebook Sharing Debugger

https://developers.facebook.com/tools/debug

Enter your URL and hit “Debug” → Then click “Scrape Again”

✅ Twitter Card Validator

https://cards-dev.twitter.com/validator

Paste your URL to preview how Twitter will display it.

✅ LinkedIn Post Inspector

https://www.linkedin.com/post-inspector

🔥 Common Problems and How to Fix Them

1. OG Image Not Showing?

  • Ensure the image is 1200×630 or larger
  • URL must be absolute and publicly accessible
  • Don’t use WebP unless you know the platform supports it

2. OG Tags Not Appearing in Page Source?

  • Make sure caching plugins are cleared
  • Disable any minification temporarily
  • View source as logged-out user

3. Preview Used to Work, Now It Doesn’t?

  • Facebook caches previews aggressively
  • Use “Scrape Again” in Debugger to refresh it

🧠 Pro Tip: Add Twitter Card Tags Too

While OG tags are used by Facebook, LinkedIn, WhatsApp — Twitter uses its own card tags.

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Your Title Here" />
<meta name="twitter:description" content="Short summary here." />
<meta name="twitter:image" content="https://yourdomain.com/path-to-image.jpg" />

📌 Final Checklist

  • ✅ OG tags present in source
  • ✅ Images are correct size and path
  • ✅ Facebook Debugger returns expected output
  • ✅ Twitter Validator shows correct card preview

🔗 Related Posts

Still stuck? Contact Babar Ilyas for a full OG tag audit on your site.

FAQ: Fix WordPress Site Preview Not Showing on Social Media

Facebook uses Open Graph tags to display link previews. If your theme or plugin isn’t outputting proper OG tags, or if the image is missing or cached incorrectly, the preview will fail.

Use an SEO plugin like Rank Math or Yoast SEO to enable Open Graph tags, add a proper image, and clear cache. Then, test the preview using the Facebook Debugger.

OG tags are pieces of metadata added to your site’s HTML. They help platforms like Facebook and LinkedIn generate rich previews when your link is shared.

Yes, you can add OG tags manually in your theme’s header.php. This gives you full control, but make sure to test your implementation using the appropriate social media validator tools.

Your OG image should be at least 1200×630 pixels. Avoid using images that are too small or in unsupported formats like WebP for Facebook.

Twitter uses Twitter Card meta tags, not OG tags. Make sure you’ve added twitter:cardtwitter:title, and twitter:image tags or enable them through your SEO plugin.

Use the Facebook Sharing Debugger and click “Scrape Again” to force Facebook to fetch the latest metadata and preview.

Yes. Caching plugins or CDN services like Cloudflare can serve old versions of your pages without updated meta tags. Always purge your cache after making changes.

Rank Math and Yoast SEO are two of the most reliable plugins for managing Open Graph and Twitter meta tags in WordPress.

Check for conflicting plugins or themes, inspect your site’s HTML, and confirm the image URLs are accessible without login. Also, retry using debug tools to confirm updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

    Branding Design Development Front-End Website-Redesigning Shopify-Development WordPress-Development
    Branding Design Development Front-End Website-Redesigning Shopify-Development WordPress-Development
    We love crafting unforgettable
    digital experiences, brands and websites with people like you.
    Follow us:
    Let’s get started
    We'd love to hear about your project.
    © 2025 babarilyas. All rights reserved.