Skip to main content
Ajitkumar Gupta Logo

How to Add Keywords in WordPress: 7 Essential Steps for Higher Rankings

How to Add Keywords in WordPress

Quick Answer: To add keywords in WordPress, place your primary keyword in the post title (H1), URL slug, SEO title, meta description, image alt text, and naturally throughout the body content. Use an SEO plugin like Yoast or RankMath to control the title tag and meta description independently.

What WordPress Controls and What It Does Not

WordPress is a content management system, not an SEO tool. Out of the box, it gives you control over:

  • Your post title (which becomes the H1 and, by default, the title tag)
  • Your URL slug (through permalink settings)
  • Your content body and heading structure
  • Image alt text fields
  • Comments and categories

What it does not control by default:

  • The SEO title independently from the post title
  • The meta description
  • Canonical tags
  • Open Graph tags for social sharing
  • Structured data markup

This is why nearly every serious WordPress site installs an SEO plugin. Not because the plugin does the optimization, but because it exposes the fields you need to optimize the page elements that WordPress does not surface on its own.

How to Add Keywords in WordPress Without Any Plugin

If you are working on a site that cannot add plugins (some managed WordPress hosting plans restrict plugin installation), here is how to optimize keyword placement using only WordPress’s built-in tools.

Step 1: Write Your Keyword Into the Post Title

The post title field at the top of the Gutenberg editor creates both your visible H1 heading and, by default, your HTML title tag. Enter a title that contains your primary keyword near the front.

Example: If your primary keyword is “how to add keywords in WordPress,” a good post title is “How to Add Keywords in WordPress: A Step-by-Step Guide.”

Step 2: Edit the URL Slug Before Publishing

WordPress automatically generates a URL slug from your post title, including stop words and all. Always edit it manually.

In Gutenberg: Look at the right sidebar under “Post” tab > “URL.” Click the URL field and replace the auto-generated version with a clean, keyword-focused slug.

Auto-generated (bad): how-to-add-keywords-in-wordpress-a-step-by-step-guide Manually edited (correct): add-keywords-wordpress

Step 3: Structure Your Content with Keyword-Optimized Headings

In the Gutenberg editor, every paragraph block can be converted to a heading block. Use H2 for major sections and H3 for subsections. Include your primary keyword in at least one H2 subheading and use variations in the others.

Step 4: Place the Keyword in the Opening Paragraph

Write your introduction so that the primary keyword appears naturally within the first 100 words. If you are writing about how to add keywords in WordPress, the first paragraph should be discussing exactly that, so keyword placement happens organically.

Step 5: Add Alt Text to Every Image

Click any image block in Gutenberg. In the right sidebar under “Block” settings, find the “Alt text” field. Write an accurate, descriptive sentence about the image. Include your keyword or a variation where it fits naturally.

The plugin limitation without workarounds: Without a plugin, you cannot set a meta description that differs from your content’s first paragraph. Google will auto-select a snippet from your content instead. For most pages, this is suboptimal because you lose control of the click-through message.

Adding Keywords with Yoast SEO (Complete Walkthrough)

Yoast SEO is installed on over 13 million WordPress sites. Here is the full process for using it to optimize keyword placement.

Installation

  1. In your WordPress admin, go to Plugins > Add New
  2. Search “Yoast SEO”
  3. Click Install Now on the official Yoast SEO plugin
  4. Click Activate

Step 1: Set Your Focus Keyphrase

Open any post or page. Scroll below the content editor to find the Yoast SEO panel. Click the SEO tab if it is not already selected.

Find the “Focus keyphrase” field. Enter your primary keyword exactly. This does not add the keyword to your content. It tells Yoast what to analyze your content against.

Important: The focus keyphrase field is Yoast’s analysis tool, not a ranking mechanism. Entering a keyword here does not directly affect how Google ranks your page. Its value is in triggering the analysis that shows you where your placement is weak.

Step 2: Optimize Your SEO Title

In the Yoast panel, find “Google preview” and click “Edit snippet.” This reveals three editable fields: SEO title, Slug, and Meta description.

The SEO title is your HTML title tag. It is separate from your post title. This is where Yoast adds significant value: you can write a click-optimized SEO title that differs from your H1 post title.

Write your SEO title with the primary keyword near the front, keep it between 50 and 60 characters (Yoast shows a visual length indicator), and write it to earn clicks from search results.

Post title (H1): “How to Add Keywords in WordPress: A Step-by-Step Guide” SEO title (title tag): “How to Add Keywords in WordPress | WordPress SEO Tutorial”

Step 3: Edit the URL Slug

In the Yoast snippet editor, the Slug field shows your current URL. Edit it to a clean, keyword-focused version here. This updates the actual page URL, not just a preview.

Step 4: Write Your Meta Description

In the Meta description field, write a 150 to 160 character description of the page. Include your primary keyword naturally. Write to the search result reader: what will they get by clicking this specific page? Make that benefit explicit.

Yoast shows a green, orange, or red indicator for meta description length. Aim for green (150 to 160 characters).

Step 5: Review the SEO Analysis

Below the snippet editor, Yoast displays an SEO analysis with colored bullet points. Green means the element is optimized. Orange means improvement is possible. Red means the element is not addressed and needs attention.

Red items to fix before publishing:

  • Keyphrase not found in introduction
  • Keyphrase not found in SEO title
  • Keyphrase not found in meta description
  • Keyphrase not found in subheadings

The Yoast caveat: Yoast rewards mechanical keyword repetition and will show warnings if your exact keyphrase does not appear with sufficient frequency. Do not let this push you into unnatural writing. Yoast is analyzing for a simplified model of keyword optimization. Google is evaluating natural language, semantic coverage, and user satisfaction. When they conflict, prioritize Google.

Adding Keywords with RankMath (Complete Walkthrough)

RankMath offers more features on its free tier than Yoast and has become a strong alternative. The workflow is similar but the interface differs.

Installation

  1. Go to Plugins > Add New
  2. Search “RankMath SEO”
  3. Install and Activate
  4. Complete the RankMath Setup Wizard (recommended: it configures defaults correctly)

Step 1: Enter Your Focus Keyword

Open your post or page editor. In the top-right of the Gutenberg editor, click the RankMath icon (small graph icon). The RankMath panel opens on the right.

Under the General tab, find the “Focus Keyword” field. Enter your primary keyword. RankMath immediately begins scoring your page.

RankMath allows adding multiple focus keywords (useful for tracking secondary and semantic keywords). Add your top 2 to 3 semantic variations in the additional keyword fields.

Step 2: Edit the SEO Title and Meta Description

Under the General tab, click “Edit Snippet.” The SEO title and meta description fields appear.

Write your SEO title with the keyword near the front. Write your meta description with the keyword placed naturally. RankMath shows character count in real time and colors the indicator when you are in the optimal range.

Step 3: Review the SEO Score

RankMath scores your page from 0 to 100 and shows an itemized checklist of what is optimized and what is not. A score above 80 generally indicates solid on-page optimization.

Priority items to achieve a score above 75:

  • Focus keyword in SEO title
  • Focus keyword in meta description
  • Focus keyword in the first paragraph
  • Focus keyword in an H2 subheading
  • Content length above 600 words (RankMath’s minimum threshold)

Step 4: Configure Schema Markup

One advantage RankMath offers over Yoast on the free tier is built-in schema markup configuration. Under the Schema tab in the RankMath panel, select the schema type that matches your content (Article, HowTo, FAQ, Product). RankMath generates the structured data automatically.

Implementing schema markup increases your page’s eligibility for rich result formats in Google search, including FAQ accordions and How-To rich results.

Keyword Placement for WordPress Page Types

The optimization process above applies to all WordPress content, but each page type has specific considerations.

Blog Posts

Blog posts are the most common target for keyword optimization. The full eight-zone placement process applies:

  • Post title: primary keyword near front
  • URL slug: clean, keyword-focused
  • Opening paragraph: keyword within first 100 words
  • H2 subheadings: keyword in at least one
  • Body content: natural keyword distribution
  • Images: alt text on all images
  • SEO title: keyword-forward, 50 to 60 characters
  • Meta description: keyword + click incentive, 150 to 160 characters

Static Pages (About, Services, Contact)

Static pages follow the same process but serve different intents. A Services page targets commercial keywords (“SEO services for small business”). An About page often targets navigational keywords (your brand name + relevant descriptors). Contact pages rarely rank for competitive keywords but should still include keyword-relevant content about the services or locations offered.

Custom Post Types (Portfolios, Case Studies, Testimonials)

Custom post types work identically to blog posts for keyword optimization purposes. The Yoast and RankMath panels appear on custom post types when the theme and plugin are configured correctly. The same eight placement zones apply.

Common WordPress SEO Mistakes and How to Fix Them

Mistake 1: Using the same title for both the post title and the SEO title. The post title (H1) and the SEO title (title tag) can and should sometimes differ. The H1 prioritizes immediate reader comprehension. The title tag prioritizes search result click-through. Using a plugin allows you to optimize both independently.

Mistake 2: Leaving the permalink as the auto-generated version. WordPress generates slugs from post titles verbatim. If your post title is “How to Add Keywords in WordPress: A Step-by-Step Guide for 2025,” your auto-generated slug is how-to-add-keywords-in-wordpress-a-step-by-step-guide-for-2025. Always edit manually before publishing.

Mistake 3: Uploading images without alt text. In the Gutenberg editor, the alt text field appears in the right sidebar when an image block is selected. Fill it in for every image. It takes five seconds and is one of the highest return-on-effort on-page actions available.

Mistake 4: Treating Yoast’s green light as the optimization goal. Yoast green means you have satisfied Yoast’s simplified keyword analysis. It does not mean your page will rank. The actual goal is creating content that completely satisfies the search intent behind your keyword, supported by sound placement across the eight zones. Yoast is a useful directional tool, not the authority.

Frequently Asked Questions

Do I need an SEO plugin to rank in WordPress?

No. You can optimize every high-signal keyword placement zone (title, H1, URL, body content, headings, alt text) without a plugin. The one element you cannot control without a plugin is an independent meta description. For most competitive topics, controlling your meta description independently from your post content is worth installing a free plugin.

Is Yoast or RankMath better for keyword optimization?

Both are effective. RankMath provides more features on the free tier, including schema markup and multiple keyword tracking. Yoast has a longer track record and slightly more intuitive interface for beginners. The plugin you use consistently and correctly matters more than which specific plugin you chose.

Can I switch from Yoast to RankMath without losing my SEO settings?

Yes. RankMath includes an importer that migrates your existing Yoast SEO titles, meta descriptions, focus keywords, and schema settings when you install it. Run the importer during RankMath setup and verify a sample of pages after migration.

Should I use keyword tags in WordPress?

No. WordPress Post Tags and the legacy Meta Keywords tag are not used by Google as ranking signals. Do not invest time managing keyword tags for SEO purposes. Focus that effort on the eight placement zones that actually influence rankings.

Key Takeaways

WordPress does not optimize your content for search automatically. You do, using the tools it provides and, ideally, an SEO plugin that exposes the fields WordPress hides by default.

The five elements that matter most in WordPress keyword optimization are: the post title (H1), the URL slug, the SEO title (title tag, best managed through a plugin), the meta description (plugin required), and image alt text (available natively in Gutenberg).

For the complete framework showing how WordPress keyword placement ties into your broader on-page SEO strategy, How to Add Keywords to Your Website covers it in full.

Once your WordPress keyword placement is solid, follow the full pre-publish process outlined in our On-Page SEO Checklist before publishing any page.