LinkPreviewPro
WordPress

How to Add Open Graph Tags to WordPress (No Coding Required)

A step-by-step guide to setting up perfect Open Graph tags on your WordPress site using the best free and premium plugins.

James Okafor

James Okafor

January 22, 2025 · 5 min read

Share:
How to Add Open Graph Tags to WordPress (No Coding Required)
Advertisement — 728×90

WordPress powers over 40% of all websites on the internet, yet a surprising number of WordPress sites have missing or misconfigured Open Graph tags. The good news: adding proper OG tags to WordPress is straightforward with the right plugin, and you don't need to touch a single line of code.

Option 1: Yoast SEO (Most Popular)

Yoast SEO is the most widely used WordPress SEO plugin, with over 5 million active installations. It automatically generates og:title, og:description, og:image, and og:type tags for every page and post. In the Yoast settings, navigate to Social → Facebook to enable Open Graph metadata. You can then customize OG tags for each post individually using the Yoast meta box.

Option 2: Rank Math (Best Free Alternative)

Rank Math is a powerful free alternative to Yoast that includes comprehensive Open Graph support. It offers more granular control over OG tags and includes a built-in preview of how your content will look on Facebook and Twitter. Navigate to Rank Math → Titles & Meta → Open Graph to configure global settings.

💡 Always set a default og:image in your SEO plugin settings. This image will be used as a fallback for any page that doesn't have a specific featured image set.

Setting Featured Images Correctly

Most WordPress SEO plugins use the post's featured image as the og:image. Always set a featured image for every post and page. Use images that are at least 1200×630px. If you don't set a featured image, the plugin will fall back to your default OG image, which may not be relevant to the specific page.

Testing Your WordPress OG Tags

After setting up your plugin, test your OG tags using PreviewPro. Enter your WordPress page URLs to see exactly how they'll appear on Facebook, Twitter, LinkedIn, and WhatsApp. This is much faster than using each platform's individual debugging tools.

Key Takeaway

Adding Open Graph tags to WordPress takes less than 30 minutes with the right plugin. Once set up, your OG tags will automatically be generated for every new post and page you create, permanently improving your social media CTR without any ongoing effort.

Tags

WordPressPluginsOpen GraphTutorial
James Okafor

James Okafor

James is a front-end developer and social media consultant who has helped over 200 brands optimize their link sharing strategy.

Try PreviewPro Free

Generate and preview your social media link cards across Facebook, Twitter, LinkedIn, and WhatsApp — instantly.

Generate Preview Now

More Articles

View all →