WordPress meta tags: what most guides get wrong
Most WordPress SEO guides tell you to install Yoast SEO and call it done. That's reasonable advice. But it skips the most important part: understanding what meta tags actually do, which ones matter, and how to verify they're working.
We've audited hundreds of WordPress sites that had Yoast installed — and still had critical meta tag failures. Plugin doesn't mean working.
This guide covers everything: what WordPress meta tags you need, how to add them (with and without plugins), and how to audit them.
The 3 types of meta tags WordPress sites need
1. SEO meta tags
These go in your and tell Google what each page is about:
- Title tag (
): The blue headline in Google results. 50-60 characters. Include your primary keyword. - Meta description (
): The snippet below the title. 150-160 characters. Affects click-through rate. - Canonical tag (
): The 'official' URL for this page — prevents duplicate content penalties. - Robots tag (
): Tells Google whether to index the page. Default is 'index, follow' — only add this if you need to change that.
2. Open Graph tags
These control how your pages look when shared on Facebook, LinkedIn, iMessage, and Slack:
og:title— The headline in the preview cardog:description— The description belowog:image— The preview image (minimum 1200×630px, absolute URL)og:url— Your page's canonical URLog:type— Content type: 'website', 'article', or 'product'
Missing these = ugly link previews when anyone shares your content. More common than you'd think.
3. Twitter Card tags
X/Twitter uses its own tag system:
twitter:card— Set tosummary_large_imagefor a big image previewtwitter:titleandtwitter:description— Often inherited from OG tagstwitter:image— The image (can be same as og:image)
Option 1: Add meta tags with Yoast SEO (recommended for most sites)
Yoast SEO is the most-used WordPress SEO plugin. Here's how to use it correctly:
Setup:
1. Install and activate Yoast SEO (free version is fine for most sites)
2. Go to SEO → General → Features → enable 'Advanced settings pages'
3. Go to SEO → Social → Facebook → enable 'Add Open Graph meta data'
4. Go to SEO → Social → Twitter → enable Twitter card
Per-page setup:
For each page/post, scroll to the Yoast SEO panel below the editor.
- SEO tab: Set 'SEO title' (what appears in Google) and 'Meta description'
- Social tab: Set Facebook and Twitter title/description/image
Common Yoast mistake: Using the 'focus keyphrase' as your title. The title goes in 'SEO title' — they're separate fields.
Run a free audit to verify Yoast is working correctly: getmetafix.com — paste your URL and see exactly what tags Yoast generated.
Option 2: Add meta tags with Rank Math
Rank Math is a newer plugin that includes more features in the free tier than Yoast. Setup is similar:
1. Install Rank Math → run the setup wizard
2. During setup, enable 'Social Meta' when prompted
3. Go to Rank Math → Titles & Meta → set global defaults
4. Per page: use the Rank Math panel below the editor → Edit Snippet → fill in title and description
Rank Math auto-generates OG tags from your SEO title/description. But set per-page OG images manually for important pages.
Option 3: Add meta tags without a plugin
If you're comfortable editing theme files, you can add meta tags directly. This is the cleanest approach but requires care — a mistake can break the whole site.
Add to your theme's functions.php or a child theme:
function custom_meta_tags() {
if ( is_singular() ) {
global $post;
$description = get_the_excerpt( $post );
$image = get_the_post_thumbnail_url( $post, 'large' );
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
}
}
add_action( 'wp_head', 'custom_meta_tags' );
This is a basic version. For production, you'd want per-page custom fields for more control.
The meta tags most WordPress sites are missing
Even with Yoast installed, we see these failures constantly:
1. OG image not set on inner pages
Yoast only auto-sets the OG image on the homepage. Blog posts and product pages often have no og:image — meaning social shares show a broken preview.
Fix: Set a featured image on every post. Yoast uses the featured image as the OG image automatically.
2. Meta description auto-generated
Yoast will auto-generate a meta description from your content if you don't write one. It's almost always worse than what you'd write. Google often ignores these.
Fix: Write a unique meta description for every important page. 155 characters. Include the keyword.
3. Title tag includes site name on short pages
Yoast's default title format is usually: Post Title - Site Name. If your post title is short, this is fine. If it's long (45+ chars), appending ' - Site Name' pushes it over 60 characters.
Fix: Change the title separator to a shorter format, or shorten your post titles to leave room.
4. Canonical tag pointing to wrong URL
On paginated archives or when the same post appears under multiple categories, canonical tags can point to unexpected URLs. This dilutes your ranking power.
Fix: Check canonical tags with getmetafix.com — it shows you exactly which canonical URL your page is reporting.
How to audit your WordPress meta tags
The fastest way: paste any page URL into getmetafix.com. It checks all 12 critical meta tag elements in 30 seconds and shows you exactly what Yoast (or your custom setup) is outputting.
More thorough check: View source (Cmd+U / Ctrl+U) and search for and . If they're missing, you know what to fix.
The $29 Fix Package at GetMetaFix generates the exact meta tag HTML tailored to your page — paste it in, or give it to your developer.