
On-page SEO for WordPress is the work of optimizing everything inside a WordPress post or page, the title tag, meta description, URL slug, headings, body content, images, internal links, and schema, so Google and AI answer engines can understand it and rank it. On WordPress most of this happens through the editor and one SEO plugin, usually Yoast SEO or Rank Math, so you rarely touch code.
On-page SEO for WordPress is the practice of optimizing the parts of a page you control inside WordPress: the words, the headings, the metadata, the links, and the media. It is different from technical SEO, which deals with crawling, indexing, site architecture, and server performance. If you want the full split between the two disciplines, our guide on on-page SEO vs technical SEO breaks it down, but the short version is that on-page work lives inside each post while technical work lives across the whole site.
The reason this matters is scale. WordPress powers 41.5% of all websites, according to W3Techs data from July 2026, which is more than any other content management system by a wide margin. Learning on-page SEO the WordPress way means the same skills apply to nearly half the web.
One thing to clear up early: WordPress does not do on-page SEO for you. The platform gives you clean, crawlable HTML out of the box, but the decisions that move rankings, matching intent, writing a strong title, structuring the content, are still yours. This guide covers the WordPress-specific way to make each of those decisions. It sits alongside our broader take on content optimization, which explains the principles that apply on any platform.
Install one SEO plugin before you touch anything else. Yoast SEO and Rank Math are the two most common choices, and both let you set custom title tags, meta descriptions, canonical URLs, schema markup, and an XML sitemap without editing theme files. WordPress.org lists Yoast SEO on 10 or more million active sites and Rank Math on 4 or more million, so either is a safe, well-supported pick.
The honest answer on which to pick: it barely matters for on-page basics. Rank Math packs more schema types and settings into its free tier, and Yoast is loved for its readability checks and clean snippet preview. Both do the job. Whichever you choose, do not run two SEO plugins at once, because they will fight over your title tags and sitemaps and produce duplicate output.
Edit the SEO title, meta description, and slug in the Yoast or Rank Math box that appears below the editor, not in the raw post title alone. The SEO title is what shows in search results, so keep it under roughly 60 characters to avoid Google truncating it, and place the main keyword near the front as Backlinko recommends. The meta description does not affect rankings directly, but a clear one lifts click-through.
The URL slug is the last part of the address, like /on-page-seo-for-wordpress. WordPress builds it from your post title by default, and it is often too long or cluttered with stop words. Trim it to a few clean, keyword-relevant words. Google's own documentation asks for short, descriptive URLs that use real words rather than ID numbers, which is exactly what a tidy slug delivers. If you want the deeper rules, see our guide on what an SEO slug is, and for the metadata side, what metadata in SEO covers.
Set your site-wide permalink structure first. Go to Settings, then Permalinks, and choose the Post name option. This makes every URL clean by default. Do it before you publish, because changing the permalink structure on a live site changes every URL and breaks existing links unless you set up redirects.
Give each post one H1 and use H2s and H3s to break the body into a logical outline. In the WordPress block editor the post title is automatically the H1, so inside the content you start your section headings at H2. This is not decoration. A clean heading structure tells Google what the page covers and lets AI answer engines lift a clean, self-contained answer from a single section.
Beyond headings, the on-page content itself has to match what the searcher wants. Before you write, look at the pages already ranking for your keyword and note whether Google is rewarding a how-to, a definition, a listicle, or a comparison, then build to that format. Lead each section with a direct answer, keep paragraphs short, and use lists and tables where they make a point clearer. These habits help readers skim and help AI engines quote you.
Add internal links by selecting text in the editor, clicking the link button, and pointing it to a related post on your own site with descriptive anchor text. Internal links spread authority between your pages and show Google how your topics connect. Ahrefs recommends using clear, relevant anchor text rather than generic phrases like "click here", because the anchor tells search engines what the target page is about.
A common WordPress mistake is publishing posts with no links between them, which leaves them stranded. Every time you publish, link to two or three older, related posts, and go back to add a link from an older post to the new one. There is no magic number, but our data-backed take on how many internal links per page gives a sensible range. Plugins like Yoast and Rank Math suggest related posts as you write, which speeds this up.
Optimize WordPress images on three fronts: file name, alt text, and file size. Rename the file to something descriptive before you upload, like wordpress-permalink-settings.png rather than IMG_4821.png. Then add alt text in the block editor that describes the image accurately, which helps accessibility and gives search engines context. Google's image guidelines lean heavily on descriptive alt text and file names.
Size is the part most WordPress sites get wrong. Large uploads slow the page down and hurt Core Web Vitals. Serve images in a modern format such as WebP, and compress them with an image optimization plugin so they load fast without visible quality loss. This single habit often does more for WordPress page speed than any other on-page change.
WordPress core does not output rich schema or a search-ready sitemap on its own, but your SEO plugin does both. Yoast and Rank Math generate structured data such as Article, Breadcrumb, and Organization automatically, and Rank Math adds a schema generator for types like FAQ and HowTo. They also publish an XML sitemap at a URL like /sitemap_index.xml that you submit in Google Search Console. Our step-by-step on adding schema markup in WordPress and on making a sitemap walk through both.
Do not assume the markup is correct just because the plugin added it. Run any key page through Google's Rich Results Test to confirm the structured data is valid and eligible for rich results before you count on it. Broken schema is worse than none, because it can disqualify the page from features it might otherwise win.
Pass Core Web Vitals on WordPress with three moves: a caching plugin, image optimization, and fast hosting. Google measures three field metrics, and the good thresholds it publishes are Largest Contentful Paint under 2.5 seconds, Interaction to Next Paint under 200 milliseconds, and Cumulative Layout Shift under 0.1. These are part of on-page SEO now because page experience feeds ranking.
In practice, a caching plugin serves pre-built pages so the server does less work, an image plugin keeps media light, and quality hosting handles traffic without slowing down. Keep your active plugin count lean, since every plugin adds code that can drag down speed. Test each change with Google's PageSpeed Insights, which reports these field metrics, and treat the numbers as your scoreboard rather than guessing.
Group posts with a small set of broad categories and use tags sparingly. Give every post one main category so your archive structure stays clean and each topic has a clear home. Categories create logical hub pages that help both users and search engines navigate your blog by theme.
Tags are where WordPress SEO often goes wrong. Creating a fresh tag for almost every post spawns dozens of thin archive pages with one or two posts each, which adds little value and clutters your internal linking. Use a handful of tags for genuine cross-cutting themes, and if a tag or category archive is thin, consider setting it to noindex in your SEO plugin so it does not compete in search.
Here is the order I follow on a new WordPress post so nothing gets missed.
For the moment of publishing itself, our guide to publishing on WordPress includes a pre-publish checklist that pairs well with this workflow.
Most WordPress on-page problems come from a short list of avoidable habits.
None of these need code to fix. They are settings and habits, which is what makes WordPress on-page SEO so approachable once you know where to look. This work differs from optimizing a store, where product and category pages carry the load, covered in our on-page SEO for ecommerce playbook.
What is on-page SEO for WordPress in simple terms? It is the work of optimizing everything inside a WordPress post or page so search engines and AI answer engines understand it and rank it. That includes the title tag, meta description, URL slug, headings, body content, image alt text, internal links, and schema. Most of it is done through the editor and an SEO plugin like Yoast or Rank Math, without touching code.
Do I need a plugin for on-page SEO in WordPress? You do not strictly need one, but a plugin makes on-page SEO far faster and harder to get wrong. Yoast SEO and Rank Math both let you set custom title tags, meta descriptions, canonical URLs, and schema without editing theme files. WordPress.org shows Yoast on 10 or more million sites and Rank Math on 4 or more million, so a plugin is the standard setup.
Is Yoast or Rank Math better for on-page SEO? Both cover the same core on-page controls: title and meta templates, snippet previews, canonical tags, and XML sitemaps. Rank Math includes more schema types and settings in its free plan, while Yoast is known for its readability analysis and a simpler interface. For most sites the better choice is whichever one you will actually configure properly.
How do I change the SEO title and meta description in WordPress? Open the post or page, scroll to the Yoast or Rank Math box below the editor, and edit the SEO title and meta description fields there. This overrides the default that WordPress generates from the post title. Keep the title under about 60 characters so Google does not truncate it, and put the main keyword near the front.
What is the best permalink structure for WordPress SEO? Use the Post name option under Settings then Permalinks, which produces a clean URL like /on-page-seo-for-wordpress. Google recommends short, descriptive URLs with words rather than ID numbers. Set this before you publish, because changing permalinks on a live site breaks existing links unless you add redirects.
Does WordPress add schema markup automatically? WordPress core does not, but SEO plugins do. Yoast and Rank Math both output structured data such as Article, Breadcrumb, and Organization automatically, and Rank Math lets you add types like FAQ and HowTo through its schema generator. Validate the result with Google's Rich Results Test before you rely on it.
How do I speed up WordPress for Core Web Vitals? Add a caching plugin, serve images as WebP through an image optimization plugin, and choose fast hosting. The targets set by Google are Largest Contentful Paint under 2.5 seconds, Interaction to Next Paint under 200 milliseconds, and Cumulative Layout Shift under 0.1. Test any change with PageSpeed Insights, which reports these field metrics.
Should I use categories or tags in WordPress? Use a small set of broad categories to group posts by topic, and use tags sparingly for cross-cutting themes. Every post should sit in one main category. Avoid creating a unique tag for every post, because thin tag archive pages add little value and can dilute your internal linking.
Can I do WordPress on-page SEO without coding? Yes. With an SEO plugin, the block editor, and an image optimizer, you can handle titles, meta, slugs, headings, alt text, internal links, and schema entirely through the WordPress dashboard. Coding only becomes relevant for deeper theme or performance work, which is where a developer or an agency helps.
Pick your best WordPress post, one that almost ranks, and run it through the eight-step workflow above. Fix the slug, tighten the title, add internal links, compress the images, and check the speed. Small, consistent on-page work compounds across a site. If you would rather have a specialist find the fastest wins hiding in your WordPress site, request a free SEO audit from Rankite and we will show you which pages to fix first.
Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.
Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.