মূল বিষয়বস্তুতে যান

Add Meta Tags to WordPress: Step-by-Step Setup and Verification

LinkinTech SEO Editorial Team· Editorial Team· 15 min read
Add Meta Tags to WordPress: Step-by-Step Setup and Verification

Quick Answer

To add meta tags to WordPress, use one SEO plugin such as Yoast SEO or Rank Math, or the built-in SEO settings available on eligible WordPress.com plans. Open the relevant post or page, enter an SEO title and meta description, and save your changes. Then inspect the published page source to confirm that WordPress generates the correct HTML metadata.

Key Takeaways

  • Most self-hosted WordPress websites can manage SEO metadata through one SEO plugin without editing theme code.
  • Yoast SEO and Rank Math provide individual post and page metadata settings, along with global defaults.
  • WordPress.com has a separate SEO interface, and access to its documented metadata features depends on the subscription plan.
  • Homepage metadata may require separate configuration from ordinary posts and pages.
  • An SEO title normally appears in the HTML <title> element, while a meta description uses an actual <meta> element.
  • Always inspect the published HTML rather than assuming that a populated plugin field means the metadata is working.
  • Correct metadata does not guarantee Google indexing, higher rankings, or an identical search-result appearance.

Understand How WordPress Adds Meta Tags

WordPress does not require most website owners to write individual HTML meta elements manually. It provides a system through which themes, plugins, and other components can generate information inside the document's <head> section.

For example, an SEO plugin can generate a page title, meta description, robots directives, and social-sharing metadata based on the settings you enter in the WordPress dashboard.

These elements have different purposes:

Element What it does Typical WordPress implementation
SEO title Provides the page's HTML title SEO plugin or theme settings
Meta description Summarizes the page for potential search snippets SEO plugin's description field
Robots meta Provides indexing and search-presentation directives SEO plugin or WordPress settings
Open Graph Supplies information used when sharing pages on social platforms SEO plugin or social metadata settings
Canonical URL Identifies the preferred URL for a page SEO plugin or WordPress-generated output

One important distinction: an SEO title is not technically a meta tag. It is normally represented by the HTML <title> element. A meta description, on the other hand, is an actual meta element.

Google documents the metadata elements it supports in its official guide to meta tags and attributes.

If you want a broader explanation of individual metadata elements and their purposes, see our guide to blog meta tags and essential HTML elements.

Choose the Right Way to Add Meta Tags

The best implementation method depends on which version of WordPress you use and how much control you need.

Here is a practical comparison of the available approaches.

Implementation Where metadata is configured Best use Main limitation
WordPress.com SEO interface Dashboard SEO settings or content editor Eligible hosted WordPress websites Features depend on subscription plan
Yoast SEO Individual editor sidebar and Search appearance settings Page-level metadata and global templates Interface and features vary by version and edition
Rank Math Rank Math editor panel and Titles & Meta settings Individual pages and global defaults Interface differs between editors
Custom development Theme or plugin code using WordPress hooks Advanced technical requirements Requires coding knowledge and testing

For most self-hosted WordPress websites, Yoast SEO or Rank Math is sufficient.

Choose one SEO plugin to manage your metadata. Installing multiple SEO plugins that perform the same functions can create conflicting settings or duplicate HTML output.

How to Add Meta Tags With Yoast SEO

Yoast SEO is a WordPress SEO plugin that provides controls for page titles, meta descriptions, and other search-related settings.

You can use it to configure metadata for individual posts and pages as well as create default templates for different content types.

Step 1: Open a WordPress Post or Page

Log in to your WordPress dashboard.

Navigate to Posts → All Posts or Pages → All Pages. Find the content you want to optimize and select Edit.

The editing interface may differ depending on whether you use Gutenberg, the Classic Editor, or another page builder.

Step 2: Find the Yoast SEO Settings

Locate the Yoast SEO section or sidebar in the content editor.

Open the Search appearance section or the corresponding snippet-editing controls available in your installed version.

Yoast provides a dedicated workflow for adding a custom description to an individual post or page. Its official meta description instructions explain where to find and edit this field.

Step 3: Enter Your SEO Title

Write a title that accurately describes the page and gives readers a clear reason to visit it.

For example:

WordPress SEO Guide: Practical Tips for Beginners

Your title should reflect the actual page content rather than simply repeating the same keyword several times.

If you need help choosing title wording, read our guide to meta title keywords and how to use them naturally.

Step 4: Write a Custom Meta Description

Enter a short, accurate summary of the page in the meta description field.

For example:

Learn how to configure WordPress SEO settings, write effective meta descriptions, and verify your published page metadata.

A useful description should:

  • Explain what readers will find on the page.
  • Reflect the actual content rather than making unsupported promises.
  • Be specific to the individual post or page.
  • Use the primary topic naturally.
  • Avoid repetitive keyword stuffing.

Google does not impose a fixed maximum meta-description length. It may use your supplied description when generating a search snippet, or select relevant visible text from the page instead. See Google's documentation on search snippets and meta descriptions.

Step 5: Save or Update the Page

After entering the SEO title and description, save your changes by selecting Update or Publish, depending on the page's current status.

Open the public URL afterward and check the generated HTML. This is an important step because the editor's fields are not the final proof of what your website outputs.

Configure Global Metadata Templates in Yoast

You do not need to enter every default setting individually for every new post.

Yoast provides content-type settings where you can configure default SEO title and description templates for categories such as:

  • Homepage
  • Posts
  • Pages
  • Other available content types

Open the Yoast settings and locate the Content types section. The exact navigation can vary by version.

Configure an appropriate default template for each relevant content type. Individual posts and pages can then use customized metadata when a general template is not sufficiently descriptive.

For further instructions, consult Yoast's documentation on content-type settings.

How to Add Meta Tags With Rank Math

Rank Math is another WordPress SEO plugin that provides metadata controls for individual content and site-wide settings.

It is an alternative to Yoast SEO, not an additional plugin you need to install alongside it.

Step 1: Open the Content Editor

From your WordPress dashboard, open the post or page you want to optimize.

If you use the Gutenberg editor, locate the Rank Math interface in the editor sidebar or its associated controls.

Step 2: Open the Snippet Editor

Select the Rank Math SEO panel and open its General tab.

Choose Edit Snippet to access the metadata fields.

The interface normally provides fields for:

  • SEO title
  • Permalink or URL information
  • Meta description

Step 3: Enter Your SEO Title and Description

Write a descriptive title and a useful summary that accurately represent the page.

For example:

SEO Title: WordPress Website Optimization: A Beginner's Guide

Meta Description: Discover practical WordPress optimization techniques, including SEO settings, metadata configuration, and page-level improvements.

Review the snippet preview, but remember that it is an editing aid rather than a guarantee of what Google will display.

Step 4: Save the Changes

Close the snippet editor and update or publish your content.

Visit the public page and inspect its source to confirm that the metadata has been generated.

Rank Math also supports different workflows for Gutenberg, Classic Editor, and Elementor. The exact controls depend on your editing environment.

Its official guide to entering SEO meta titles and descriptions provides additional instructions.

Configure Global Defaults in Rank Math

Rank Math also provides global metadata settings through its Titles & Meta configuration.

These settings let you establish default templates for posts, pages, and other supported content types.

Review the available homepage and content-type settings to ensure that the defaults match your website's structure.

For detailed instructions, see Rank Math's Titles & Meta documentation.

How to Add Meta Tags on WordPress.Com

WordPress.com and self-hosted WordPress installations do not always have the same dashboard or SEO features.

If your website is hosted directly by WordPress.com, consult its own SEO settings rather than assuming that instructions for a self-hosted plugin will apply.

Use the WordPress.Com SEO Interface

The documented WordPress.com workflow includes:

  1. Log in to your WordPress.com account.
  2. Open the relevant website dashboard.
  3. Navigate to Jetpack → SEO → Content, where that interface is available.
  4. Select the post or page you want to optimize.
  5. Edit the SEO title and meta description fields.
  6. Save your changes.

You may also be able to edit SEO information through the content editor.

The exact interface can change as WordPress.com updates its dashboard.

Check Your Subscription Plan

An important limitation applies to the documented WordPress.com SEO functionality.

According to its official SEO support documentation, the described feature is available on Premium, Business, and Commerce plans, rather than Free or Personal plans.

If you cannot find the expected controls, check your subscription and the current documentation before assuming that something is broken.

You can also consult the WordPress.com search appearance guide for additional information about its SEO configuration.

These instructions apply to the hosted WordPress.com platform. They should not be treated as universal navigation instructions for self-hosted WordPress.org websites.

How to Set Meta Tags for Your Homepage and All Pages

Your homepage often needs different metadata from an individual blog post or service page.

For example, a homepage may describe your business and its main services, while a blog post should summarize the specific subject covered in that article.

There are three settings to consider.

Homepage Metadata

Configure your homepage title and description through the homepage or site-wide SEO settings provided by your plugin.

If your homepage displays a static page, check whether its individual editing settings control the metadata. Depending on your theme and plugin, the homepage configuration may be handled separately.

Avoid assuming that the default post template automatically controls the homepage.

Global Metadata Templates

Global templates provide default title and description formats for different types of content.

For example, a post title template might combine the individual post title with the website name.

This can save time when publishing many articles. However, a generic template should not replace a custom description when a page needs a more precise summary.

Individual Post and Page Metadata

Individual settings allow you to customize the information for each URL.

A practical approach is to use global templates as defaults and customize important pages where necessary.

For example, a contact page, product page, homepage, and detailed tutorial should not automatically receive identical descriptions.

The goal is to make each page's metadata relevant to its actual purpose.

How to Verify Meta Tags After Publishing

This is one of the most important steps when you add meta tags to WordPress.

Entering information into an SEO plugin does not automatically prove that the published website is outputting the intended HTML.

You should verify the actual public page.

Step 1: Open the Published Page

Save or update your post or page.

Open its public URL in a browser. Make sure you are checking the correct page rather than the WordPress editing screen.

Step 2: View the Page Source

In most desktop browsers, you can right-click the page and select View Page Source.

Alternatively, use the browser's page-source keyboard shortcut where supported.

The source view displays the HTML returned for the page.

Step 3: Find the SEO Title

Search the source for <title>.

You should find an element resembling:

<title>WordPress SEO Guide | Example Site</title>

Check that the title describes the correct page and is not accidentally inherited from an unrelated template.

Step 4: Find the Meta Description

Search for:

name="description"

An illustrative result might look like this:

<meta name="description" content="Learn practical ways to manage WordPress SEO metadata.">

Confirm that the description is accurate and relevant to the published content.

Step 5: Check for Duplicate Metadata

Look for multiple title or description declarations that appear to compete with one another.

Multiple SEO plugins, theme-generated metadata, and custom snippets can sometimes produce conflicting output.

If you find duplicates, identify which component is generating each element before changing settings.

Step 6: Check Robots Directives

Search for robots metadata, especially noindex.

For a public page intended to appear in search results, confirm that an unintended noindex directive is not present.

Google explains how page-level robots directives work in its robots meta tag documentation.

Step 7: Check Canonical and Open Graph Output

When relevant, inspect the canonical URL and social-sharing metadata.

A canonical URL normally uses an HTML link element, for example:

<link rel="canonical" href="https://example.com/wordpress-seo-guide/">

Open Graph information uses properties such as og:title and og:description:

<meta property="og:title" content="WordPress SEO Guide">
<meta property="og:description" content="A practical guide to WordPress metadata.">

These are separate from the standard meta description used for search snippets.

The following is a simplified illustration of how several elements may appear together in a document head. It is not a claim that a particular plugin generates this exact output:

<head>
  <title>WordPress SEO Guide | Example Site</title>
  <meta name="description" content="Learn practical ways to manage WordPress SEO metadata.">
  <meta property="og:title" content="WordPress SEO Guide">
  <meta property="og:description" content="A practical guide to WordPress metadata.">
</head>

Step 8: Use Google Search Console When Available

Google Search Console provides a URL Inspection tool that can help you examine Google's understanding of a page and its crawling and indexing status.

Use it after checking the public HTML if you want to investigate how Google can access the URL.

Remember that correctly implemented metadata does not guarantee that Google will index a page or display the supplied title and description exactly as written.

Google may generate search-result title links from multiple sources, including page headings and other signals. Its official title-link documentation explains this behavior.

How to Fix Missing, Duplicate, or Incorrect Meta Tags

If your WordPress metadata does not appear as expected, work through the following troubleshooting path rather than immediately editing theme files.

What you notice What to investigate Practical next step
No SEO fields in the editor Plugin activation or editor integration Confirm that your chosen SEO plugin is active and available in the current editor
Description saved but missing from page source Plugin settings, templates, caching, or theme output Check the page settings and inspect the generated HTML again after clearing relevant caches
Multiple descriptions Competing plugins, theme code, or custom snippets Identify the source of each declaration and remove the unintended duplicate safely
Unexpected noindex WordPress visibility settings, plugin robots settings, or custom directives Check whether the page is intentionally excluded from search engines
Correct HTML but different Google snippet Google's automatic search-result generation Review the page content and metadata without assuming the implementation has failed

Check Whether Your Theme Supports wp_head()

WordPress themes use a function called wp_head() to trigger the wp_head action in the document's head section.

Plugins and other WordPress components use this mechanism to output scripts, styles, and other information.

If the relevant hook is missing or incorrectly implemented in a theme, plugin-generated metadata may not appear as expected.

The official WordPress developer reference for wp_head() explains its purpose and behavior.

Yoast also identifies the presence of this hook as one possible issue to investigate when a meta description is missing from the HTML. See its missing meta description troubleshooting guide.

If you are unfamiliar with PHP or WordPress theme development, do not immediately modify your theme's header files. First check the plugin configuration, caching, theme documentation, and whether the theme has been customized. Consider obtaining technical help before changing production theme code.

Check Whether Another Plugin Is Generating Metadata

If you have installed multiple SEO plugins over time, an older plugin may still be generating metadata.

Review your active plugins and identify which component is responsible for each title, description, and robots directive.

Do not simply disable components without understanding their other functions. Make changes carefully and recheck the published source afterward.

Check Caching

A caching plugin, hosting cache, or content delivery network may continue serving an older version of a page after you update its metadata.

If the HTML does not reflect your latest changes, clear the relevant caches and reload the public page.

Then inspect the page source again.

Check WordPress Visibility Settings

WordPress has settings that can discourage search engines from indexing a website.

An SEO plugin may also provide page-level robots controls.

If a public page unexpectedly contains noindex, review both the site-wide visibility settings and the individual page's SEO settings.

Do not remove a noindex directive automatically if the page is intentionally private or excluded from search results.

Frequently Asked Questions

Do I Need an SEO Plugin to Add Meta Tags to WordPress?

Not necessarily. WordPress themes and custom development can also generate metadata. However, an established SEO plugin such as Yoast SEO or Rank Math is generally a convenient option for beginners managing page titles, descriptions, and robots settings without editing PHP.

Can I Add Meta Tags Without Editing Code?

Yes. Most self-hosted WordPress users can manage common SEO metadata through an SEO plugin's dashboard and content-editor settings. Eligible WordPress.com users can also use its documented SEO interface. Custom code is usually unnecessary for ordinary metadata configuration.

How Do I Add Meta Tags to My WordPress Homepage?

Open your SEO plugin's homepage or global search-appearance settings and configure the homepage title and description. If your website uses a static homepage, check its individual editing settings as well. The exact workflow depends on your plugin, theme, and WordPress installation.

Can I Use Yoast SEO and Rank Math Together?

You should generally choose one plugin to manage your primary SEO metadata. Running both for the same functions can create duplicate or conflicting output. If you are switching plugins, check the resulting HTML after migration.

Why Are My Meta Tags Missing From the Page Source?

Possible causes include an inactive plugin, incorrect editor settings, conflicting metadata generators, caching, or a theme that does not correctly support the wp_head() action. Investigate these possibilities systematically rather than assuming one particular cause.

Does Google Always Display My Meta Description?

No. Google may use your supplied meta description when it considers it useful, or generate a snippet from visible page content. Writing a relevant description is worthwhile, but its exact appearance in search results is not guaranteed.

Does Adding Meta Tags Guarantee Better Google Rankings?

No. Accurate titles and descriptions help communicate page content, but adding metadata alone does not guarantee higher rankings, indexing, or additional traffic. Search visibility depends on many factors, including content quality, technical accessibility, relevance, and competition.

Does WordPress.Com Include SEO Metadata Settings on Every Plan?

No. The documented WordPress.com SEO editing functionality is available on Premium, Business, and Commerce plans rather than Free or Personal plans. Check the current WordPress.com documentation because available features and subscription details can change.

Does WordPress Automatically Add Meta Descriptions?

WordPress themes, plugins, and other components may generate metadata automatically. However, the output depends on your configuration. If you want a particular description for an important page, check the relevant SEO settings and verify the published HTML.

Should I Add a Meta Keywords Tag to WordPress?

Usually not for Google SEO. Google does not use the historical meta keywords tag for indexing or ranking. Focus instead on accurate page titles, useful descriptions, relevant content, and appropriate technical settings.

Final Thoughts

Learning how to add meta tags to WordPress is less about inserting HTML manually and more about configuring the right settings and checking the resulting website output.

For most self-hosted websites, one established SEO plugin provides a straightforward way to manage individual page metadata and global templates. WordPress.com users should follow the platform's own instructions and check their subscription eligibility.

Whichever method you choose, verify the published HTML, investigate duplicate or missing elements, and make sure important public pages do not have accidental noindex directives. That gives you a more reliable foundation for managing WordPress metadata without unnecessary code changes or unsupported SEO promises.