How to Add Custom OG Images to Your WordPress Site
WordPress powers over 40% of the web, but most WordPress sites have poor or nonexistent OG images. Plugins like Yoast or RankMath let you set them, but you still need the actual image. Here's how to get the right image showing up on every share.
Set og:image in Yoast SEO or RankMath
Both Yoast SEO and RankMath have a "Social" tab in the page editor where you can manually upload an OG image per post or page. This overrides any default theme behavior and gives you full control.
Use a site-wide fallback for unset pages
In Yoast SEO, go to SEO → Social → Facebook and upload a default OG image. This shows up for any page that doesn't have its own custom image set — better than a blank preview.
Generate images that match your post titles
The best OG images for WordPress blogs include the post title and your brand identity. OGImagen lets you generate a branded card for each post and download the image — then upload it directly to Yoast or RankMath.
Debug with Facebook's Sharing Debugger
WordPress caches aggressively. After setting your OG image, paste your URL into Facebook's Sharing Debugger and click "Scrape Again" to force a refresh. This clears any stale previews.
Generate your OG image in seconds
Paste a title, pick a brand color, and get production-ready social cards for every platform — with framework-specific meta tag snippets included.
Generate an OG image for your WordPress site