How to Add Meta Keywords in WordPress: Yoast SEO vs Rank Math for Managing On-Page SEO
Blog
Olivia Brown  

How to Add Meta Keywords in WordPress: Yoast SEO vs Rank Math for Managing On-Page SEO

Do not spend much time adding meta keywords in WordPress unless you have a specific, non-Google reason to use them. Google has ignored the meta keywords tag for years, and most modern SEO plugins have moved on. For WordPress users, Yoast SEO and Rank Math are better used for titles, descriptions, schema, internal links, and content checks, not old meta keyword tags.

TLDR: Meta keywords are mostly obsolete, so Yoast SEO and Rank Math do not treat them as a serious ranking feature. If you migrate 200 blog posts and find old keyword tags, keep your focus on improving title tags and meta descriptions first. For example, a site with a 2.1% click-through rate may see better gains from rewriting 30 weak SEO titles than from adding 300 hidden meta keyword tags. If you still need meta keywords for a private directory, legacy search tool, or niche search engine, you can add them with custom code or a small metadata plugin.

What Are Meta Keywords, Really?

Meta keywords are keywords placed inside the HTML of a page. Visitors do not usually see them. Search engines can read them, but major engines like Google do not use them for ranking.

A classic meta keywords tag looks like this:

<meta name="keywords" content="wordpress seo, yoast seo, rank math, meta keywords">

Years ago, site owners stuffed this tag with every phrase they wanted to rank for. It got abused fast. That abuse is one big reason search engines stopped trusting it.

Honestly, it feels like one of those SEO tasks that refuses to disappear. Clients still ask for it. Old audits still flag it. Some checklists still mention it. But for most WordPress sites, it should sit near the bottom of your priority list.

Yoast SEO vs Rank Math: Do They Add Meta Keywords?

Short answer: not in the way many users expect.

Yoast SEO removed support for meta keywords years ago. The plugin focuses on the focus keyphrase, SEO title, slug, meta description, readability, schema, breadcrumbs, and social previews. The focus keyphrase is for content analysis inside WordPress. It is not the same as a meta keywords tag.

Rank Math also focuses on focus keywords rather than the old meta keywords tag. You can add multiple focus keywords, get scoring suggestions, and optimize content for search intent. But again, those focus keywords are mainly for guiding your writing and SEO checks. They are not automatically published as a traditional meta keywords tag in most setups.

That difference causes confusion. You type a keyword into Yoast or Rank Math, see a green score, and assume it became a meta tag. It usually did not. It helped the plugin grade your page.

Should You Add Meta Keywords at All?

For standard SEO, no. Your time is better spent elsewhere.

Use meta keywords only if one of these applies:

  • A client contract requires them, even after you explain the limits.
  • An internal site search system uses them for filtering or indexing.
  • A private content database reads them as metadata.
  • A niche search engine or regional platform requests them.
  • You are preserving old metadata during a site migration.

If none of those apply, skip them. Seriously. Expect to waste time on a tag that will not move rankings while better SEO work waits in the queue.

How to Add Meta Keywords in WordPress with Yoast SEO

Yoast does not offer a built-in meta keywords field. So if you must add them, use a custom method.

Option 1: Use a Custom Field and Code

This method gives you control without switching SEO plugins.

  1. Open a post or page in WordPress.
  2. Enable Custom Fields from the editor settings if they are hidden.
  3. Create a custom field named meta_keywords.
  4. Add your terms, separated by commas.
  5. Add a small PHP function to your child theme or a code snippets plugin.

Example:

add_action('wp_head', function() {
  if (is_singular()) {
    $keywords = get_post_meta(get_the_ID(), 'meta_keywords', true);
    if (!empty($keywords)) {
      echo '<meta name="keywords" content="' . esc_attr($keywords) . '">' . "\n";
    }
  }
});

This prints the meta keywords tag in the page header only when the custom field has content.

Important: use a child theme or a code snippets plugin. Do not paste this into a parent theme file that may be overwritten during updates.

Option 2: Use a Metadata Plugin

You can also install a lightweight plugin that adds custom meta tags. This is easier for non-technical users. The downside is simple: another plugin means another thing to maintain, test, and update.

If you already use Yoast, avoid installing a full second SEO suite just for meta keywords. That can create duplicate titles, duplicate descriptions, or conflicting schema output.

How to Add Meta Keywords in WordPress with Rank Math

Rank Math gives you a richer interface for focus keywords, but it still does not make old meta keywords a main feature. The workflow is similar: use Rank Math for real on-page SEO, then add a custom tag only if needed.

  1. Edit your post or page.
  2. Use Rank Math’s Focus Keyword field for content guidance.
  3. Write a strong SEO title and meta description.
  4. If a meta keywords tag is required, add the same custom field method described above.
  5. Test the live page source to confirm the tag appears.

Rank Math can save time on content scoring because it supports multiple focus keywords more visibly than Yoast. Still, do not confuse its score with ranking power. A 90/100 score can still perform badly if the page misses the search intent.

Image not found in postmeta

Yoast SEO vs Rank Math for On-Page SEO

For managing on-page SEO, both plugins are useful. The better choice depends on how you work.

Yoast SEO Strengths

  • Simple interface: easy for writers and editors.
  • Reliable SEO title and description controls: clear and predictable.
  • Good readability checks: helpful for teams that publish often.
  • Strong compatibility: widely supported by themes and plugins.

Yoast SEO Annoyances

  • Some useful features sit behind the premium version.
  • The analysis can feel rigid.
  • It does not support meta keywords directly.

Rank Math Strengths

  • Multiple focus keywords: useful for related search terms.
  • Built-in schema tools: handy for reviews, products, FAQs, and articles.
  • Detailed SEO scoring: good for users who like checklists.
  • Redirection and 404 tools: included in many setups.

Rank Math Annoyances

  • The interface can feel busy for beginners.
  • There are many toggles, and that can slow setup.
  • It also does not treat meta keywords as a core SEO feature.

What to Optimize Instead of Meta Keywords

If you want better rankings and clicks, focus on elements that actually matter.

  • SEO title: include the main search phrase naturally.
  • Meta description: write a clear reason to click.
  • URL slug: keep it short and readable.
  • Headings: use them to structure answers.
  • Internal links: connect related posts and key pages.
  • Image alt text: describe the image accurately.
  • Schema markup: help search engines understand the page type.
  • Content freshness: update old stats, examples, and screenshots.

A practical example: if a post gets 4,000 impressions a month but only 60 clicks, the click-through rate is 1.5%. Rewriting the SEO title and meta description may raise that to 2.5% or 3%. That change can bring 40 to 60 extra visits from the same rankings. Meta keywords will not do that.

Best Practice Workflow

Use this workflow for each WordPress page:

  1. Pick one primary keyword and two or three related phrases.
  2. Write the page for the user’s search intent.
  3. Add the primary keyword to the title, intro, one heading, and body text where it fits.
  4. Write a useful meta description under about 155 characters.
  5. Add internal links to relevant pages.
  6. Check the page with Yoast or Rank Math.
  7. Add meta keywords only if a real system needs them.

Which Plugin Should You Choose?

Choose Yoast SEO if you want a clean, familiar tool with strong writing guidance. It is a safe choice for bloggers, small businesses, and editorial teams.

Choose Rank Math if you want more built-in features and deeper controls in one plugin. It suits users who like SEO scoring, schema options, redirects, and extra settings.

For meta keywords, neither plugin wins. That feature is not the point anymore. If you need the tag, add it with a custom field and a small code snippet. If you do not need it, ignore it and spend that time fixing titles, improving content, and building better internal links.

Final recommendation: use Yoast or Rank Math for modern on-page SEO, not for outdated meta keyword habits. If someone insists on meta keywords, add them cleanly, verify the source code, and move on. The real gains are still in useful content, clear snippets, and pages that answer the query fast.