SEO & AI search · Guide
How to Add Meta Tags in WordPress (Titles, Descriptions, Robots and Verification)

Short answer
The easiest way to add meta tags in WordPress is with an SEO plugin such as Yoast SEO or Rank Math, which adds fields for the SEO title, meta description, robots settings and social tags on every post and page. For other tags, such as a site verification tag, use the plugin's settings or a code snippet that prints the tag in the page head.
Key takeaways
- SEO plugins add title, description, robots and social meta fields.
- Meta descriptions do not directly affect rankings but shape search snippets.
- The meta keywords tag is ignored by Google.
- Verification tags can be added through SEO plugins or a header snippet.
- Use one tool per tag type to avoid duplicate meta tags.
What are meta tags?
Meta tags are snippets of HTML in a page's head that describe the page to browsers, search engines and social networks, such as its description, indexing rules and preview image.
Visitors do not see most meta tags on the page itself. They show up in search results, social previews and browser behaviour.
That makes them easy to forget, so build a habit of checking them whenever you publish important pages.
MDN's reference for the meta element explains the different kinds of meta tags.
The title tag is technically a separate element, but it is usually managed alongside meta tags.
WordPress themes add the title tag through core support, and SEO plugins then control its text.
Which meta tags matter in WordPress?
The ones that matter most are the title, meta description, robots, viewport, Open Graph and Twitter card tags, plus verification tags for tools such as Google Search Console.
| Tag | Purpose | How to add it |
|---|---|---|
| Title | Headline in search results and tabs | SEO plugin |
| Meta description | Suggested search snippet | SEO plugin |
| Robots | Index and follow rules | SEO plugin |
| Viewport | Mobile layout | Theme, usually automatic |
| Open Graph and Twitter | Social sharing previews | SEO or social plugin |
| Verification | Prove site ownership | SEO plugin or header snippet |
Google documents the meta tags it supports, which is a useful list of what is worth adding.
Tags outside that list may still help other services, but they do not affect Google Search.
Some tags matter for specific platforms, such as app links or theme colour for mobile browsers, but most sites can ignore them.
How do you add meta tags with an SEO plugin?
Install an SEO plugin, open a post or page, and fill in the SEO title and meta description fields in its panel; the plugin then prints the tags in the page head.
Our guide on setting up Yoast SEO covers the first configuration.
Set default title and description templates for post types, categories and archives, so pages without custom text still get sensible tags.
Templates use variables such as the post title and site name, so new content is covered automatically.
Use only one SEO plugin. Our guide on using Rank Math and Yoast together explains why two cause duplicate tags.
How do you write a good meta description?
Write one or two plain sentences that summarise the page and give people a reason to click, using words searchers would use and matching what the page actually delivers.
Google may use your description in results or write its own snippet from the page content.
Keep each description unique. Copying one description across many pages wastes the opportunity.
For large sites, prioritise the pages that get the most search impressions, which you can find in Search Console.
Avoid stuffing keywords. Descriptions are written for people deciding whether to click.
Mention a specific benefit, such as a price range, a free template or a step-by-step method, when the page really offers it.
Does the meta description help rankings?
Not directly; Google does not use it as a ranking factor, but a clear description can improve how often people click your result.
The SEO title has a bigger effect, because it is usually the clickable headline.
Google sometimes rewrites titles too. Clear, accurate titles that match the page's main heading are rewritten less often.
How do you control indexing with robots meta tags?
Use your SEO plugin's advanced settings on a page to set noindex or nofollow, which prints a robots meta tag telling search engines not to index the page or follow its links.
Google's guide to the robots meta tag explains every supported value.
Use noindex for thin pages such as thank-you pages or internal search results.
Do not noindex pages you want to rank. Check noindex settings carefully after migrations or theme changes.
Check that Settings > Reading does not have Discourage search engines ticked on a live site, which adds noindex everywhere.
Staging sites should keep that setting on, but it must be switched off when the site goes live.
How do you add social sharing meta tags?
SEO plugins add Open Graph and Twitter card tags automatically, using the post title, description and featured image, with optional custom fields for social titles and images.
The Open Graph protocol defines the tags Facebook, LinkedIn and messaging apps read.
Our guide on adding Open Graph tags in WordPress covers custom images and testing tools.
Avoid also enabling social tags in a separate sharing plugin, or you will get duplicates.
Set a default social image in your SEO plugin, so pages without a featured image still show a branded preview.
How do you add a verification meta tag?
Copy the HTML tag from the service, such as Google Search Console, and paste its code into your SEO plugin's webmaster tools settings, or add the full tag in the head with a code snippets plugin.
Our guide on connecting Google Search Console to WordPress shows the verification steps.
Keep the verification tag in place after verifying. Removing it can unverify the property later.
Other services, such as Bing Webmaster Tools or Pinterest, use similar verification tags, and most SEO plugins have fields for them.
Our guide on using the WPCode plugin shows how to add header code without editing theme files.
How do you add meta tags with code?
Developers can print tags with a function hooked to wp_head in a child theme or small plugin, which runs on every page load and outputs HTML into the head.
The wp_head hook reference explains where the hook runs.
Use conditional tags, such as checking the page type, to print tags only where needed.
Escape any dynamic values before printing them, so user input cannot inject code into the page head.
Do not hard-code tags into theme header files, since theme updates overwrite them.
Should you add the meta keywords tag?
No. Google has ignored the meta keywords tag for ranking for many years, and filling it in mainly shows competitors which keywords you target.
Spend that time on better titles, descriptions and content instead.
Some plugins removed the field entirely for this reason.
Other search engines have also said they give it little or no weight.
How do you check your meta tags?
View the page source in your browser and search for title, description, robots and og: to see which tags are present, then make sure each appears only once.
Google Search Console's URL Inspection tool shows how Google sees the page.
It also reports whether a page is blocked by a robots tag, which is useful when a page refuses to appear in results.
Social networks offer sharing debuggers that preview your Open Graph tags.
Check a post, a page, a category and the homepage, since each uses different templates.
Repeat the check after installing new plugins, since some add their own meta tags without warning.
What about canonical tags?
Canonical tags are link elements rather than meta tags, but SEO plugins add them in the same place to show search engines the main version of each page.
Our explainer on what a canonical tag is explains when to change it.
Most pages should keep the default self-referencing canonical.
Change it only for genuine duplicates, such as print versions or syndicated copies of the same article.
What mistakes should you avoid?
Avoid duplicate tags from several plugins, the same description on every page, accidental noindex settings, and titles that do not match what the page offers.
After changing a page title, update its SEO title too. Our guide on changing a page name covers every place a name appears.
Keep a simple spreadsheet of key pages with their titles and descriptions. It makes reviews quick and shows gaps at a glance.
Review meta tags on your most important pages a few times a year.
Frequently asked questions
How do I add meta tags in WordPress without a plugin?
Add a function hooked to wp_head in a child theme or small custom plugin that prints the tags, or use a code snippets plugin to add header code.
Where do I add a meta description in WordPress?
Install an SEO plugin, open the post or page, and fill in the meta description field in the plugin's panel below or beside the editor.
Does WordPress add meta tags by default?
Core adds a few, such as the viewport tag through themes and a title tag, but descriptions, robots and social tags need an SEO plugin or code.
Should I use the meta keywords tag?
No. Google ignores the meta keywords tag for ranking. Spend the time on clear titles, unique meta descriptions and genuinely helpful content instead.
How do I add a Google verification meta tag?
Paste the verification code into your SEO plugin's webmaster tools settings, or add the full tag to the page head with a code snippets plugin.
Sources
- The meta element MDN Web Docs
- Meta tags and attributes that Google supports Google Search Central
- Robots meta tag specifications Google Search Central
- The Open Graph protocol ogp.me
- wp_head WordPress Developer Resources
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


