Shahbaz Ali, WordPress developer and designer
Shahbaz Ali

Where to Add Keywords in WordPress (8 Places That Actually Matter)

WordPress editor with Rank Math SEO panel open, representing where to add keywords in WordPress

You’ve done the keyword research. You know the phrase you want to rank for. Now: where does it actually go? WordPress doesn’t have a “keyword” field built in, and putting the phrase in the wrong places (or cramming it into all of them) is how pages end up ranking for nothing instead of something.

After optimizing hundreds of WordPress pages, here’s exactly where to add your keywords — and just as important, where to stop adding them. Eight placements, in priority order, with the Rank Math workflow for each.

Quick answer: Add your primary keyword to the SEO title, the URL slug, the first paragraph, one H2 heading, the meta description, image alt text, and naturally throughout the body. In WordPress with Rank Math, the SEO title and meta description are set in the Rank Math meta box; the slug, headings, and body text are set in the regular editor. Don’t stuff — once per placement is enough.

1. The SEO Title (Most Important)

The SEO title — the clickable blue link in Google results — is the single highest-impact place for your keyword. Google reads it first, searchers scan it first, and it directly affects both ranking and click-through rate. Place the keyword as close to the front as readability allows.

In Rank Math: open the post, scroll to the Rank Math meta box, and edit the SEO Title field. My complete guide to SEO titles covers the formula for writing titles that rank and get clicked — including length limits, good-vs-bad examples, and when Google rewrites your title anyway.

2. The URL Slug

The slug is the last segment of your URL — the where-to-add-keywords-in-wordpress part of the full address. Google uses it as a ranking signal (a small one, but real), and searchers see it in results, where a keyword-containing slug confirms relevance at a glance.

In WordPress: click the slug field above the editor (or under Post → URL in the sidebar). Keep it short, hyphenated, keyword-forward, and lowercase. Remove filler words — where-to-add-keywords-wordpress is better than where-to-add-keywords-in-your-wordpress-site-for-seo. Set it before publishing; changing a slug after the page is indexed requires a redirect.

3. The First Paragraph (Within the First 100 Words)

Google gives extra weight to content near the top of the page. If your keyword appears naturally in the first sentence or two, you’re confirming what the title tag promised — this page is about exactly what Google thinks it’s about. Don’t force it into a weird sentence; just lead with the topic. If you’re writing about where to add keywords in WordPress, saying that in the intro is the most natural thing in the world.

4. At Least One H2 Heading

H2 headings structure your page for both readers and Google. Including the keyword (or a close variation) in at least one H2 tells Google this is a substantive article about the topic, not a page that merely mentions it in passing. Don’t put it in every heading — that reads as spam. One or two keyword-containing H2s among several naturally worded headings is the balance.

5. The Meta Description

The meta description is the gray snippet below the blue link in search results. It doesn’t directly affect ranking, but it heavily affects whether people click — and Google bolds the keyword in the snippet when it matches the search query, making your result visually pop.

In Rank Math: it’s the field right below the SEO title in the meta box. Write 140–155 characters that include the keyword naturally, promise what the page delivers, and give the searcher a reason to click yours instead of the ten others on the page.

6. Image Alt Text

Alt text describes an image for screen readers and for Google’s image index. If the image relates to your topic — a screenshot, a diagram, a product photo — include the keyword naturally in the alt text. “Screenshot showing where to add keywords in WordPress using Rank Math” is useful; “keywords-wordpress-seo-rank-math-best” is spam.

In WordPress: click the image in the editor, then fill the Alt text field in the block sidebar. Or set it in the Media Library for reuse across pages. One keyword-containing alt on the page’s most relevant image is enough; don’t keyword-stuff every image.

7. Naturally Throughout the Body

Google reads the full page, not just the tag placements above. The keyword and its natural variations should appear throughout the body wherever they fit the sentence — not because you’re counting density, but because a thorough article about a topic naturally uses the topic’s language. If you find yourself forcing the phrase into sentences where it doesn’t belong, you’re past the useful point.

A practical test: read the paragraph aloud. If the keyword sounds forced, rewrite the sentence without it — Google will understand from context. If it sounds natural, leave it. Aim for readability, not a keyword counter.

8. The Focus Keyword Field in Rank Math

This is the one people think matters most, and it actually matters least. The Focus Keyword field in Rank Math (or Yoast) is a coaching tool, not a ranking signal. Google never sees it — it’s only used by the plugin to check whether you’ve placed the keyword in the locations above and give you a green/orange/red score.

Set it so the plugin’s analysis works, then follow its suggestions where they make sense and ignore the ones that would make your writing worse. A green Rank Math score with unreadable text is worse than an orange score with clean, helpful content.

Where NOT to Add Keywords

Some places people stuff keywords that either don’t help or actively hurt:

  • WordPress tags. Tags are a taxonomy for organizing your content internally — they don’t pass SEO value to the page. Adding twenty keyword-variation tags creates thin, duplicate tag archive pages that can actually hurt your site.
  • Hidden text or white-on-white keywords. Google has detected this since 2003. Don’t.
  • Every single heading. One or two keyword headings among natural ones is fine. Six H2s that all contain the keyword reads like spam to both Google and humans.
  • The category name (for SEO purposes). Name categories for users and site structure, not as keyword containers. “WordPress SEO” is a fine category; “Best WordPress SEO Tips How to Do SEO” is not.

The Rank Math Workflow (Putting It All Together)

Here’s the exact sequence I follow when publishing a WordPress post optimized for a keyword:

  1. Write the content first. Cover the topic thoroughly, using the keyword and its variations naturally. Don’t write for the plugin; write for the reader.
  2. Set the slug to a short, keyword-containing URL.
  3. Open Rank Math and enter the focus keyword.
  4. Write the SEO title — keyword near the front, under 60 characters, compelling enough to click.
  5. Write the meta description — keyword included, 140–155 characters, promises what the page delivers.
  6. Check Rank Math’s analysis. Fix the reasonable suggestions (keyword in first paragraph, in an H2, in alt text). Ignore suggestions that would hurt readability.
  7. Publish and request indexing in Google Search Console.

That’s it. Seven steps, five minutes of SEO work on top of however long the writing took. The content does the heavy lifting; the placements make sure Google knows what the content is about.

Frequently Asked Questions

How many times should I use a keyword on a page?

There’s no magic number. Use it in the SEO title, slug, first paragraph, one H2, meta description, and one image alt — then let it appear naturally in the body wherever it fits. If you’re counting occurrences, you’re thinking about it wrong. Write thoroughly about the topic and the keyword takes care of itself.

Does the Rank Math focus keyword affect rankings?

No. The focus keyword field is a coaching tool that tells the plugin what to check for — Google never sees it. What affects rankings is where you actually place the keyword in your content: the title tag, URL, headings, body text, and alt text.

Should I use the exact keyword or variations?

Both. Use the exact phrase in the SEO title, slug, and first paragraph for clarity. In the body and headings, mix in natural variations — Google understands synonyms and related phrases. Writing naturally about the topic produces the right variation mix without forcing it.

Can I target multiple keywords on one page?

Yes — one primary keyword and two to three closely related secondaries. Rank Math Pro lets you set multiple focus keywords for analysis. The primary goes in the title and slug; secondaries appear naturally in headings and body. Don’t try to target unrelated keywords on one page — that dilutes all of them.

Do WordPress tags help with SEO?

Not in the way most people think. Tags create archive pages, and unless those archive pages are intentionally valuable, they add thin duplicate content to your site. Use tags for user navigation if they help, but don’t treat them as keyword containers for SEO.

Wrapping Up

Eight places, in priority order: SEO title, slug, first paragraph, one H2, meta description, image alt, body text, and the focus keyword field for the plugin’s coaching. Hit the first six deliberately, write the body naturally, and you’ve done more on-page SEO than most sites manage in a year of chasing green scores.

And if the keywords are placed but the rankings still aren’t moving — technical SEO, site speed, or competition problems under the surface — that’s the work I do. Get in touch and I’ll take a look.


Shahbaz Ali is a senior WordPress developer with 6+ years of agency experience, specializing in WordPress development, speed optimization, and emergency fixes.