How to Add Meta Tags in WordPress (With or Without Plugins)

Hesam Seyedi ● April 8, 2025

Introduction

Ever wonder why some pages get clicks—and others get ignored? It comes down to meta tags. 

These small snippets control how your content shows up in search results. Mess them up, and your page blends into the noise. Get them right, and you grab attention before anyone even lands on your site.

Here’s the kicker: a solid meta description can boost your click-through rate by up to 5.8%. That’s traffic you’re already earning—if your tags do their job.

In this guide, you’ll learn how to add meta tags in WordPress the right way—whether you’re using plugins or adding them manually.

Let’s make sure your content actually gets clicked.

What Are Meta Tags (and Why They Still Matter)

Before we get into how to add them, let’s quickly cover what meta tags are—and why they’re worth your attention.

Meta tags are small pieces of HTML code that sit in the head section of your WordPress site. They don’t show up on the page itself, but search engines use them to understand your content and decide how to display it in results.

Here are the ones that matter most:

  • Title Tag – Controls the headline shown in search results
  • Meta Description – The short summary displayed under the title
  • Robots Tag – Tells search engines whether to index the page or follow its links
  • Canonical Tag – Helps prevent duplicate content by pointing to the original version
  • Social Meta Tags – Define how your content appears when shared on social platforms

Search engines have evolved, and some meta tags (like keywords) have faded in importance. But others—especially title and description—still influence how users interact with your content in search. And better click-through rates mean more traffic, even if rankings stay the same.

Now that you know what they are, let’s look at the different ways you can add meta tags to your WordPress site.

How to Add Meta Tags in WordPress: 3 Easy Methods

Now that you understand what meta tags do, let’s talk about how to actually add them.

WordPress doesn’t include built-in support for custom meta tags, but the good news is: you’ve got options.

You can add meta tags manually by editing your theme’s files, use a plugin that handles everything for you, or take a hybrid approach using a lightweight code snippets tool.

Which method you choose depends on your comfort level with code and how much control you want.

Let’s break down each method so you can choose what works best for your site.

1. Add Meta Tags Manually (Using Code)

If you’re comfortable working with theme files, you can insert meta tags directly into your site’s code. This gives you full control, but it does come with a small risk—making changes in the wrong spot can break your layout. So proceed carefully, and always back up your theme before editing.

a. Using header.php

The header.php file controls everything inside your site’ssection. Here’s how to add meta tags there:

1. In your WordPress dashboard, go to Appearance > Theme File Editor.
2. Select header.php from the list on the right.
3. Inside the < head > section, paste your meta tags, like this:


<meta name="description" content="Your custom meta description here">
<meta name="keywords" content="keyword1, keyword2, keyword3">

4. Save your changes.

Keep in mind: this method hard-codes the same meta tags across your entire site, unless you wrap them in conditional logic. It works fine for simple, static meta data but isn’t ideal for dynamic or post-specific content.

b. Using functions.php (for Dynamic Meta Descriptions)

To display custom meta descriptions that change per post or page, you can add a small PHP function instead:

1. Go to Appearance > Theme File Editor and open functions.php.
2. Add this code:


function custom_meta_description() {
    if (is_single() || is_page()) {
        global $post;
        $excerpt = strip_tags($post->post_excerpt ?: $post->post_content);
        $excerpt = mb_substr($excerpt, 0, 160, 'UTF-8');
        echo '<meta name="description" content="' . esc_attr($excerpt) . '">' . "\n";
    }
}
add_action('wp_head', 'custom_meta_description');
This method automatically pulls a short description from each post or page and injects it into the —great for SEO without needing a plugin.
Coming up next: if coding isn’t your thing, there’s a much easier way to manage meta tags using plugins—let’s look at that next.

2. Add Meta Tags in WordPress Using a Plugin

If editing code feels like more risk than reward, you’re not alone. Most WordPress users rely on plugins to handle meta tags—and for good reason.

Plugins simplify the process, reduce errors, and offer more flexibility when managing SEO across dozens or hundreds of pages.

There are several reliable options, but three stand out for their ease of use and functionality.

Yoast is one of the most widely used SEO plugins for WordPress—and for good reason. Once installed, it adds a meta box below each post or page where you can customize:

  • SEO title
  • Meta description
  • Slug
  • Focus keyword
You’ll also see a live snippet preview that shows how your content will appear in Google’s search results. To edit meta tags:
  1. Install and activate the Yoast SEO plugin.
  2. Edit any post or page.
  3. Scroll down to the Yoast SEO section.
  4. Click Edit snippet to change your title and description.

Yoast also lets you set meta robots settings (like noindex) and includes social media tag support via its “Social” tab.

If you prefer a slightly different layout with more control over technical SEO, AIOSEO is another strong choice. It offers similar features to Yoast but includes deeper control over:

  • Robots meta tags
  • Canonical URLs
  • Social metadata
  • Schema markup

To add meta tags with AIOSEO:

  1. Install and activate All in One SEO.
  2. Navigate to any post or page.
  3. Scroll down to the AIOSEO Settings box.
  4. Customize the meta title, description, and keywords (if you choose to use them).

If you only want to insert custom meta tags without a full SEO suite, Meta Tag Manager is a lightweight alternative. It’s ideal for adding specific tags like:

  • Verification codes (Google, Bing, Facebook)
  • Custom meta tags for individual pages
  • Structured data or Open Graph tags

Here’s how to use it:

  1. Install and activate Meta Tag Manager.
  2. Go to Settings > Meta Tag Manager.
  3. Add global or page-specific meta tags.
  4. Choose where and how you want each tag applied.
This plugin is great if you need flexibility without the extras.

Plugins make managing meta tags scalable and simple—especially for growing websites. But what if you want something in between—more control than a plugin, but less risk than editing theme files?

There’s a solution for that too. Let’s look at it next.

3. Add Meta Tags Using the Code Snippets Plugin

If you like the idea of custom code but want a safer way to manage it—without touching theme files—the Code Snippets plugin strikes the perfect balance. It lets you insert PHP code directly into your site’s functions without editing core files, which means fewer risks and easier updates.

This is a smart option for site owners who want more control than a plugin offers, but don’t want to break anything in the process.

Why Use Code Snippets?

  • You avoid editing functions.php directly
  • Changes are easy to manage and disable
  • Code is organized in one place in your dashboard
  • It works even if you switch themes

How to Use It:

1. Go to Plugins > Add New and install Code Snippets
2. Click Snippets > Add New
3. Add a title like “Meta Description Generator”
4. Paste in a function like this:


function custom_meta_description_snippet() {
    if (is_single() || is_page()) {
        global $post;
        $excerpt = strip_tags($post->post_excerpt ?: $post->post_content);
        $excerpt = mb_substr($excerpt, 0, 160, 'UTF-8');
        echo '<meta name="description" content="' . esc_attr($excerpt) . '">' . "\n";
    }
}
add_action('wp_head', 'custom_meta_description_snippet');

5. Save and activate the snippet

That’s it.

Your site will now output dynamic meta descriptions pulled from your post content—no theme file edits required.

You can also use this method to add other meta tags, like robots or verification codes, by tweaking the function.

So far, we’ve covered three reliable ways to add meta tags to WordPress—whether you’re a beginner or comfortable with code.

But adding them is only half the story. Next, let’s talk about how to check if they’re actually working.

How to Check If Your Meta Tags Are Working

So far, we’ve covered three reliable ways to add meta tags to WordPress—whether you’re a beginner or comfortable with code.

But adding them is only half the story. Next, let’s talk about how to check if they’re actually working.

Adding meta tags is a great step—but how do you know they’re showing up correctly? Whether you used a plugin, added code manually, or used the Code Snippets plugin, it’s important to verify that your tags are in place and displaying as expected.

Here are a few simple ways to check your meta tags:

1. View Page Source

This is the fastest method.

  • Visit any page on your site
  • Right-click and choose View Page Source
  • Look for your meta tags inside the < head > section

You should see lines like this:


<meta name="description" content="Your page description here">
If your tags are missing, double-check your code or plugin settings.

2. Use Browser Developer Tools

  • Press Ctrl+Shift+I (or Cmd+Option+I on Mac) to open Developer Tools
  • Click on the Elements tab
  • Expand the < head >section to see all meta tags
  • You can also check for any errors in the Console tab

3. Google Search Console

Once your site is indexed, Google Search Console shows how your meta title and description appear in search results. It also flags duplicate or missing tags across your site.

Go to:

  • Search Appearance > Performance
  • Review click-through rates for different pages
  • Use the URL Inspection Tool to test how Google sees a specific page

4. SEO Tools and Extensions

Tools like SEOquake, Screaming Frog SEO Spider, and Ahrefs Site Audit can scan your site for missing, duplicate, or poorly optimized meta tags. They’re especially useful for larger websites where manual checks aren’t practical.

Once your tags are confirmed and working, you’re in a strong position.

But don’t stop there—let’s look at a few best practices to make sure your meta tags aren’t just showing up, but actually helping your site perform better.

Meta Tag Best Practices: Make Every Character Count

Now that your meta tags are in place and working, the next step is making sure they’re effective.

Just having meta tags isn’t enough—they need to be written in a way that grabs attention, encourages clicks, and accurately represents your content.

Here are a few simple but impactful best practices to follow:

1. Keep It Concise (But Clear)

  • Title tags should stay under 60 characters
  • Meta descriptions should stay under 160 characters
Search engines may cut off longer text, so keep things short, punchy, and relevant.

2. Write for Humans First

Don’t stuff your meta tags with keywords.

Instead, think about what would make you click. Use natural language that clearly explains what the page offers.

3. Avoid Duplicates

Each page on your site should have a unique title and meta description.

Duplicate tags confuse search engines and can hurt your click-through rate.

4. Use Keywords Wisely

Include your primary keyword near the beginning of your title and meta description—but only if it makes sense.

Prioritize readability over repetition.

5. Include a Clear Benefit or Value

Think of your meta description as a mini sales pitch. What will the user get from clicking your result? Make it specific and outcome-driven.

Example:

“Learn how to add meta tags in WordPress using code or plugins—no tech skills needed.”

Done right, meta tags help users and search engines understand your content better. And when users understand what they’re clicking on, they’re far more likely to actually click.

Next up—let’s talk about a few common mistakes to avoid so your tags don’t end up working against you.

Common Mistakes to Avoid with Meta Tags

Even though meta tags are easy to set up, it’s just as easy to overlook the small details that can undercut their impact.

Let’s run through some of the most common mistakes site owners make—so you can steer clear of them.

1. Leaving Meta Descriptions Blank

If you don’t write one, Google will try to generate it for you.

The result? A random chunk of text that may not reflect your content or value. Take control by writing your own.

2. Stuffing Keywords

Cramming a string of keywords into your title or description doesn’t help—and can actually hurt your credibility. It looks unnatural, turns users off, and adds no real SEO benefit.

3. Using the Same Meta Tags on Every Page

Each page has a different purpose, so each should have a unique meta title and description. Repetition dilutes relevance and reduces the chances of ranking well or getting clicks.

4. Forgetting About Meta Robots

Accidentally setting a page to noindex or nofollow can block search engines from including it in results. Always double-check robots tag settings, especially on important pages.

5. Relying on Auto-Generated Content

Some plugins offer default templates that pull in excerpts or generic text. These can work in a pinch, but they’re rarely optimized. Custom-written meta tags almost always perform better.

Avoiding these pitfalls can make a noticeable difference in how your pages perform in search.

But to really understand the value meta tags bring, it helps to look at them as part of a bigger picture—which we’ll wrap up with next.

Final Thoughts: Why Meta Tags Still Deserve Your Attention

Meta tags might feel like a small detail—but in a competitive search landscape, small details matter. They shape how your content appears in Google. They influence first impressions. And when written well, they can be the difference between a user clicking your link or skipping past it.

Whether you added them manually, used a plugin, or went with the Code Snippets approach, what matters most is that you have control over how your pages are presented in search.

To recap:

  • Use clear, specific titles and descriptions
  • Keep your content human-friendly and keyword-aware
  • Avoid common mistakes like duplication or keyword stuffing
  • Always double-check that your tags are active and accurate

Adding meta tags won’t fix a weak site—but when combined with quality content and a solid SEO strategy, they give your pages a better shot at being seen and clicked.

Start simple. Test results. And keep refining.

Meta tags might not grab your visitors’ attention—but they’ll help make sure you get the chance.

1. Do I really need meta tags if Google doesn’t use them for rankings?

Yes. While meta tags like keywords are no longer used for rankings, title and description tags still play a major role in how your content appears in search. A clear, compelling meta description can significantly boost click-through rates.

No. WordPress doesn’t include custom meta tag fields out of the box. You’ll need to either add them manually through code or use a plugin like Yoast SEO, All in One SEO, or Meta Tag Manager.
It depends on your needs. Yoast SEO is great for beginners and covers most use cases. All in One SEO offers more advanced controls. Meta Tag Manager is a good option if you only want to insert custom tags without all the extras.
You can, but you shouldn’t. Each page should have a unique meta description that reflects its specific content. Reusing the same tag across multiple pages can confuse search engines and reduce your site’s relevance.

Check your site’s source code or use browser developer tools to see if the tags are showing correctly. For a more detailed check, use tools like Google Search Console or SEO auditing tools like Screaming Frog or SEOquake.