SEO & Analytics

How to Do On Page SEO in WordPress

Optimize every WordPress post for higher rankings and more traffic

On page SEO in WordPress is the process of optimizing each post or page so that search engines and visitors understand your topic quickly and clearly. Rather than guessing what matters, you can follow a simple checklist every time you publish new content. This consistent workflow helps more of your posts rank, attract clicks, and turn visitors into subscribers or customers.

In this guide you will walk through the WordPress editor and your SEO plugin step by step. By the end, one post will be fully optimized from top to bottom, and you will have a repeatable process you can apply to every article or landing page you create.

What You Need to Start

  • A WordPress site where you can log in as an Administrator or Editor.
  • An SEO plugin installed and activated. If you do not have one yet, follow How to Install a WordPress SEO Plugin Step by Step.
  • Basic keyword research completed for the topic you want to rank for.
  • At least one draft or existing Post or Page ready to optimize.
  • A recent backup of your site from your host or backup plugin.

Step 1: Choose Your Focus Keyword

Every on page SEO workflow starts with one clear focus keyword. This is the main phrase you want a specific post or page to rank for, plus a few closely related variations. A focused topic gives search engines a clear signal about what your content covers.

Find a realistic keyword

  1. Open your favorite keyword research tool in a new browser tab.
  2. Type in your topic idea and review phrases that match your content and audience.
  3. Select one main keyword with realistic search volume and difficulty for your site’s current authority.
  4. Write down two or three related phrases you can use in headings and body text.
  5. Keep this list open while editing so you can easily copy and paste phrases into your content where they fit naturally.
WordPress block editor (Gutenberg) interface, showcasing content blocks and settings for on-page SEO optimization.
Optimize your content for on-page SEO using the intuitive WordPress block editor.

Once you have a primary keyword and a handful of related phrases that match search intent, you can move on to optimizing the actual post.

Step 2: Open Your Post Editor and SEO Panel

Now it is time to connect your chosen keyword to a real WordPress post so the SEO plugin can analyze it. The basic steps are similar whether you use the Classic Editor or the block editor.

Load the post you want to optimize

  1. Log in to your WordPress dashboard at /wp-admin.
  2. In the left menu, click Posts » All Posts (or Pages » All Pages).
  3. Hover over the post you want to optimize and click Edit.

Set the focus keyphrase in your SEO plugin

  1. Scroll below the content editor until you see your SEO plugin panel, such as Yoast SEO, All in One SEO, or Rank Math.
  2. Find the field named Focus keyphrase or Focus Keyword.
  3. Enter your chosen focus keyword exactly once in that field.
  4. Click Save Draft or Update to store the change.

After saving, the SEO plugin will display an analysis checklist or score based on your focus keyword.

WordPress editor showing SEO meta box settings for on-page optimization, including focus keyphrase, search appearance preview, and post status.
The WordPress post editor demonstrating key on-page SEO settings, including the focus keyphrase and a mobile search results preview.
Treat the SEO plugin’s color indicators as helpful hints, not strict rules. Clear, helpful content for readers should always come before chasing a perfect green score.

Step 3: Optimize Your URL Slug

The URL slug helps both Google and humans understand what a page is about. A short, descriptive slug that includes your main keyword is easy to read and more likely to earn clicks in search results.

Edit the slug in WordPress

  1. In the post editor, locate the Permalink or URL Slug setting.
    • In the block editor, click the Post tab, then open the Permalink section.
    • In the Classic Editor, look directly under the title for the Permalink field and click Edit.
  2. Change the slug to a short phrase that includes your main keyword, using only lowercase letters and hyphens. Example: on-page-seo-wordpress.
  3. Remove stop words like “and” or “the” and strip out unnecessary extra words.
  4. Click OK (if shown) and then click Update or Save Draft.

Check the preview above the editor and confirm the URL looks clean, readable, and obviously matches your topic.

Avoid changing the URL of posts that already receive traffic or backlinks unless you set up a 301 redirect. Changing slugs without redirects can break links and hurt rankings.

Step 4: Create an SEO Title With Your Keyword

The SEO title is the blue, clickable headline that appears in search results. It should contain your focus keyword, promise a benefit, and stay within the recommended length so it displays neatly.

Write a search-friendly SEO title

  1. In the SEO plugin panel, locate the field labeled SEO Title or Title.
  2. Begin your title with, or very close to, your focus keyword. For example: “How to Do On Page SEO in WordPress”.
  3. Add a short benefit phrase such as “Step by Step Guide” or “for Higher Rankings”.
  4. Watch the plugin’s length meter and adjust until the preview suggests your title will not be truncated.
  5. Click Update or Save Draft.

Use the search snippet preview inside your SEO plugin to confirm the title fits on one line and looks compelling.

WordPress post editor screen showing Yoast SEO settings, including Google search preview, SEO title, slug, meta description, and categories.
The WordPress Gutenberg editor showcases the Yoast SEO meta box for optimizing post titles, slugs, and meta descriptions, alongside post categories.
Numbers, brackets, and power words can improve click-through rate, but keep the title honest and directly related to the content on the page.

If your theme still uses hard coded <title> tags and does not support dynamic titles, you can add theme support in a child theme only.

function jannah_child_theme_setup() {
    add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'jannah_child_theme_setup' );
Always add PHP code in a child theme or a safe snippets plugin, and take a full backup before editing any theme files.

Step 5: Write a Compelling Meta Description

The meta description is the short summary shown under your SEO title in search results. Although it is not a direct ranking factor, a clear description with your keyword helps more people choose your result.

Craft a description that earns clicks

  1. In the SEO plugin panel, find the Meta description field.
  2. Write one or two natural sentences that describe the main value of your page.
  3. Include your focus keyword once, plus one related phrase if it fits smoothly.
  4. Keep the description around 150–160 characters, using the plugin’s length bar as a guide.
  5. Click Update or Save Draft.

Check the live preview in your SEO plugin and make sure the description is complete, inviting, and not cut off in the middle of a sentence.

Screenshot of Rank Math SEO plugin preview in WordPress post editor, demonstrating how to set SEO title and focus keyword for a post.
The Rank Math SEO plugin provides a real-time preview of your post’s search engine listing and allows you to set a focus keyword.

A good meta description reads like a short ad for your content and contains the keyword without feeling stuffed or awkward.

Step 6: Structure Your Content for On Page SEO

Search engines and readers rely on your headings, paragraphs, and lists to understand how your content is organized. When the structure is logical and easy to scan, engagement improves and ranking potential increases.

Outline your main sections

  1. Review your post and note the main points you want to cover.
  2. Turn each main point into an H2 heading using the editor’s Paragraph / Heading dropdown.
  3. Use H3 headings for subsections under each H2 where you go into more detail.

Use headings and keywords wisely

  1. Include your focus keyword in one or two headings where it fits naturally.
  2. Place related phrases in other headings to support the topic without repeating the exact keyword everywhere.

Make paragraphs easy to scan

  1. Break long paragraphs into shorter blocks of two to four lines so the text is easier to read.
  2. Use bullet or numbered lists whenever you describe steps, tips, features, or examples.

Scroll through the post and confirm that each heading clearly describes the section beneath it and that no area feels like a wall of text.

WordPress Gutenberg editor displaying a post with H1, H2 headings, text blocks, and post settings for on-page SEO.
The WordPress Gutenberg editor showcases content blocks and post settings vital for optimizing on-page SEO.

If your SEO plugin includes a readability analysis, aim for a result that suggests the content is easy to read and well structured.

Step 7: Optimize Images, Internal Links and Publish

Images and internal links send strong on page SEO signals. Correct image alt text improves accessibility and topical relevance, while internal links help search engines understand how your content fits with the rest of your site.

Optimize your images

  1. Click on each image inside your post in turn.
  2. In the right sidebar, fill in the Alt Text field with a short, descriptive phrase that reflects the subject of the image. Add your focus keyword only when it truly matches what the image shows.
  3. Check that images are not oversized. Compressed formats and appropriate dimensions should be used before uploading.

Add internal and external links

  1. Highlight meaningful phrases in your content where an internal link would help readers get more information.
  2. Click the Link icon in the toolbar, type a keyword from another article, and select the relevant post from the suggestions to create an internal link.
  3. Add at least two or three internal links to closely related posts and, when appropriate, one high-quality external link such as official documentation or a trusted resource.
  4. Click Preview to confirm all images load quickly and every internal link points to the correct page.

Use this step to build a healthy internal linking structure that supports all of your on page SEO work. For more ideas, see Internal Linking Strategies for WordPress Content.

WordPress Gutenberg editor showing post content, active link options, and the Post settings sidebar for on-page SEO.
The WordPress Gutenberg editor displays a new post’s content, block editing tools, and the Post settings sidebar where key on-page SEO elements are configured.

When images load fast, alt text is filled in, and your post points to other relevant pages, the article is ready to publish or update.

Conclusion You Are Ready to Go

By now you have walked through the complete workflow for on page SEO in WordPress. During the process, you chose a focus keyword, optimized the URL, title, and meta description, structured your content, and improved images and internal links.

The same steps can be applied to every new post or page you create. As you repeat this on page SEO process across your site, search engines will understand your topics more clearly, click-through rates can improve, and you are likely to see a steady increase in qualified organic traffic.

Further Reading

Frequently Asked Questions

Do I need a paid SEO plugin to do on page SEO in WordPress

A paid SEO plugin is not required to do strong on page SEO. Free versions of popular plugins let you set focus keywords, edit titles and meta descriptions, and get basic content and readability analysis. Premium versions add advanced features, but you can start optimizing posts effectively with the free tools.

How many keywords should I target on one WordPress page

Focus each page on one main keyword plus a small group of closely related variations. When a single post tries to cover too many different topics, both readers and search engines can get confused. Create separate posts for clearly different keywords or search intents.

Should I change old URLs when I improve on page SEO

If an old URL is already indexed, receiving traffic, or earning backlinks, avoid changing it unless it is truly misleading or broken. Whenever a change is necessary, set up a 301 redirect from the old URL to the new one so you keep visitors and link equity.

How often should I update my on page SEO on WordPress posts

Review important posts every few months. During each review, look for outdated information, opportunities to add internal links to newer content, and ways to improve titles or meta descriptions based on current searches. Small, regular updates usually outperform rare, massive rewrites.

What is the difference between on page SEO and technical SEO in WordPress

On page SEO focuses on visible elements on each page, such as titles, headings, URLs, body content, images, and internal links. Technical SEO covers sitewide factors like crawling, indexing, XML sitemaps, structured data, and performance. Both matter, but improving on page SEO is often the easiest and fastest way to see early gains.

Does on page SEO alone guarantee first page rankings

No single factor can guarantee a first page ranking. Strong on page SEO gives your content a solid foundation and a better chance to compete, but results also depend on content quality, backlinks, site authority, technical health, and the level of competition for your keywords. Think of on page SEO as the base your long-term strategy is built on.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button