Tutorials

How to Set Up WordPress SEO: Complete 2026 Guide

Step-by-step WordPress SEO setup: settings, Rank Math, schema, Search Console, and the first-30-day checklist for new and migrated sites.

Amit Founder, aitowp.agency 16 min read

If you just migrated to WordPress — or if you’re setting up a new WordPress site and want it to rank — this guide walks through the exact setup, step by step, with specific settings and the order to do them in.

Nothing theoretical. No “consider optimizing your meta tags.” Just: click here, set this value, move on.

By the end of this guide, your WordPress site will have: a properly configured SEO plugin, schema markup on every page, an XML sitemap submitted to Google, Search Console verified, Core Web Vitals measured, a repeatable per-post SEO workflow, and a 30-day checklist for what to monitor after launch.

Total setup time: about two hours if you work straight through. Longer if you stop to optimize content.

Who this is for:

  • New WordPress site owners starting from scratch
  • Site owners who just migrated from an AI builder (Lovable, v0, Bolt, or Claude) and need the SEO layer installed
  • WordPress owners who set everything up years ago and want to redo it properly for 2026

Who this is not for:

  • People still on Lovable, v0, or Bolt.new looking to fix SEO in place — start with the complete SEO guide for AI-built websites instead
  • Enterprise sites with 10,000+ URLs — this guide covers small-to-medium sites

Before you start — preflight checklist

Do these three things before touching any SEO settings. They save hours of rework later.

1. Confirm HTTPS is working

Your site must load over https:// with a valid SSL certificate. Any modern WordPress host (SiteGround, WP Engine, Kinsta, Cloudways, or Cloudflare Pages for static WP) provides free SSL in one click.

Test: Open your site at http://yoursite.com (no S) — it should redirect to https://yoursite.com. If it doesn’t, fix this first. SEO without SSL is a losing battle.

2. Pick your preferred URL format

Decide once, never change again: do you want https://yoursite.com or https://www.yoursite.com? And do you want trailing slashes on URLs (/about/) or not (/about)?

There’s no SEO advantage to either choice — just pick one and stay consistent. Changing later creates redirect chains that dilute link equity.

My default recommendation: non-www, with trailing slashes. Set this in WordPress under Settings → General for the domain choice, and it’ll be enforced automatically.

3. Set your primary goal before optimizing

What do you want this site to rank for? Write down three to five phrases your ideal customer would type into Google. Not what you want to sell — what they’re searching for.

Example for a law firm: “family lawyer near me”, “divorce attorney [city]”, “estate planning attorney [city]”. Not “Smith & Associates Law”.

This list drives every content decision later. If you can’t name these phrases in plain language, you’re not ready to start SEO — you’re ready for keyword research, which is a different problem.

Step 1 — Configure core WordPress settings

This is the foundation. Five minutes, huge impact. Wrong settings here break everything downstream.

Settings → General

  • Site Title: Your brand name. This is your most important text asset. No “WordPress Site” or “My Blog”.
  • Tagline: One sentence describing what you do. Appears in some SEO contexts. No “Just another WordPress site”.
  • WordPress Address (URL) / Site Address (URL): Match your HTTPS + non-www (or www) decision from preflight. Both should be identical.

Settings → Reading

  • Your homepage displays: Usually “A static page” for business sites. Select the page you want as homepage.
  • Search engine visibility: Unchecked. The box labeled “Discourage search engines from indexing this site” must be OFF. This is the single most common WordPress SEO mistake I see on new migrations — it’s sometimes left on from staging.
  • Post name: Select this. Your URL structure becomes /post-title/. Clean, keyword-rich, no dates or category clutter.

Do NOT use “Day and name” (/2026/05/01/post-title/) or “Month and name” — dated URLs hurt evergreen content because they signal staleness even when content is fresh.

  • Allow link notifications from other blogs (pingbacks and trackbacks): Unchecked. Almost all pingbacks in 2026 are spam.
  • Comment must be manually approved: Checked, if you allow comments at all.

Step 2 — Install Rank Math (and why, not Yoast)

For new WordPress sites in 2026, Rank Math is the better default over Yoast. Three reasons:

  1. More features on the free tier (schema types, redirections, 404 monitor, local SEO).
  2. Faster — Rank Math’s admin pages load noticeably quicker on low-powered hosts.
  3. Better default schema output — less config needed to get rich results.

That said, if you already know Yoast well, stick with it. The concepts below apply to both plugins; specific menus differ.

Install and run the setup wizard

  1. Plugins → Add New → search “Rank Math SEO” → Install → Activate
  2. The setup wizard launches automatically
  3. Create a free Rank Math account when prompted (required for setup wizard)

Wizard settings (exact values)

  • Your Site: Business type = match your business. Site name = your brand. Logo = upload.
  • Social Meta: Upload a 1200×630 default social image. This is the fallback image for shares when a post has no featured image.
  • Search Console: Follow the “Connect Google Search Console” flow. If Search Console isn’t set up yet, skip this — we’ll do it in Step 7. But ideally do it here.
  • Sitemaps: Enable XML Sitemap = yes. Under “Include in Sitemap,” enable Posts and Pages. Disable Tags and Authors unless you actively curate them.
  • SEO Tweaks:
    • Noindex Empty Category and Tag Archives: ON
    • Noindex Paginated Pages: ON
    • Nofollow External Links: OFF (leave editorial choice per-link)
  • Ready: Click “Return to Dashboard”.

Post-wizard cleanup

Navigate to Rank Math → Titles & Meta and review these sections:

  • Homepage: Set a specific homepage title (not “%site%”). Example: “WordPress SEO Services | YourBrand”. Set a compelling meta description.
  • Posts: Title template should include %title% %sep% %sitename%. Archive title should differ from post title.
  • Pages: Same pattern.
  • Media: Set media attachment pages to noindex. These pages should never rank.
  • Author: If you’re a solo author, set author archives to noindex — they duplicate your homepage.

Step 3 — Configure schema markup

Rank Math handles most schema automatically, but verify and customize.

Verify default schema

  1. Rank Math → Titles & Meta → Posts → Schema type should be “Article” by default
  2. Rank Math → Titles & Meta → Pages → Schema type should be “WebPage”
  3. Publish a test post → open the live URL → right-click → View Page Source → search for application/ld+json

You should see at least two JSON-LD blocks: one Article (or WebPage) and one BreadcrumbList.

Test with Google’s Rich Results Test

  1. Go to search.google.com/test/rich-results
  2. Paste your test post URL
  3. Click “Test URL”
  4. Wait for results — you should see “Page is eligible for rich results”

If you see errors, they’re usually missing fields (author, image, publish date). Fix in the post itself, then re-test.

Add business schema (for service sites)

If you’re a local business or service provider:

  1. Rank Math → Titles & Meta → Local SEO
  2. Fill in business name, type (Legal Service, Health & Beauty, Restaurant, etc.), address, phone, hours
  3. This emits LocalBusiness schema site-wide and dramatically improves local pack visibility

Migrated from an AI tool that had zero schema? Test every important page with Rich Results after Rank Math is configured. You should see eligibility on posts, pages, and service pages where you’ve added FAQ blocks or review schema.

Step 4 — Submit your XML sitemap

Rank Math auto-generates your sitemap at https://yoursite.com/sitemap_index.xml.

Verify the sitemap exists and is accurate

  1. Visit https://yoursite.com/sitemap_index.xml in your browser
  2. You should see links to sub-sitemaps: post-sitemap.xml, page-sitemap.xml, etc.
  3. Click into post-sitemap.xml — every published post should be listed with accurate <lastmod> dates
  4. Check that noindex URLs (like media attachments) are NOT in the sitemap

Submit to Search Console

This requires Search Console setup (next section). Come back here after Step 7:

  1. Open Search Console → select your property → left sidebar → Sitemaps
  2. Enter sitemap_index.xml in the field → Submit
  3. Status should show “Success” within a few minutes

Add sitemap to robots.txt

Rank Math does this automatically, but verify:

  1. Visit https://yoursite.com/robots.txt
  2. You should see a line like: Sitemap: https://yoursite.com/sitemap_index.xml
  3. If it’s missing: Rank Math → General Settings → Edit robots.txt → paste the line manually

Step 5 — Optimize Core Web Vitals

Core Web Vitals — LCP, CLS, INP — are a real ranking factor. More importantly, they correlate strongly with conversion rate.

Measure your baseline

  1. Open PageSpeed Insights
  2. Paste your homepage URL → Analyze
  3. Record the three Core Web Vitals for mobile: LCP, CLS, INP
  4. Do the same for one blog post and one service page

Targets:

  • LCP: under 2.5 seconds
  • CLS: under 0.1
  • INP: under 200ms

Fix the common WordPress CWV killers

In order of impact:

1. Install a caching plugin.

  • WP Rocket ($59/year, best-in-class) or
  • Free alternatives: LiteSpeed Cache (if your host uses LiteSpeed), W3 Total Cache, or WP Super Cache
  • Enable: page caching, browser caching, Gzip compression, minify CSS/JS

2. Optimize images.

  • Install ShortPixel or Smush (free tier sufficient)
  • Convert existing images to WebP
  • Enable lazy loading (WordPress does this natively since 5.5, but verify it’s not disabled by your theme)

3. Remove unused plugins.

  • Every active plugin adds CSS, JS, or database queries
  • If you haven’t used a plugin in 3 months, deactivate and delete it
  • Goal: under 15 active plugins on a marketing site

4. Use a lightweight theme.

  • Heavy multipurpose themes (Avada, Divi, with page builders loaded on every page) consistently score poorly on CWV
  • Lightweight options: GeneratePress, Kadence, Astra, Blocksy
  • If you just migrated to WordPress, you probably already have a theme — don’t switch unless CWV is persistently bad after other optimizations

5. Enable a CDN.

  • Cloudflare’s free tier works for most small sites
  • Set up: add your domain to Cloudflare → point DNS to Cloudflare nameservers → enable “Proxy” for your A and CNAME records
  • Page load times typically improve 30–50% immediately

Re-run PageSpeed Insights after each fix. If LCP drops below 2.5s and CLS is under 0.1, you’re done. If not, investigate slow queries with Query Monitor plugin.

Step 6 — Set up Google Search Console and Analytics

Without Search Console, you’re flying blind. This is the free tool that tells you which queries Google is showing your site for, which pages rank, and which have technical issues.

Verify your site in Search Console

  1. Go to search.google.com/search-console
  2. Add property → choose Domain (not URL prefix) if your host supports DNS verification. Domain property tracks all subdomains and protocols.
  3. Follow the DNS TXT record verification flow
  4. Wait 24–48 hours for initial data to populate

Connect to Rank Math

Once verified:

  1. Rank Math → Status & Tools → Database Tools → find “Google Analytics” and “Search Console” sections
  2. Click “Connect” under Search Console → authenticate
  3. This enables Search Console data inside your WordPress dashboard

Set up Google Analytics 4

  1. Go to analytics.google.com → create GA4 property
  2. Copy your Measurement ID (starts with G-XXXXXXXX)
  3. Either paste into Rank Math → General Settings → Analytics, or install the “Site Kit by Google” plugin for a tighter integration

Submit sitemap

Now go back to Step 4 and complete the sitemap submission.

Step 7 — Your per-post SEO workflow

Every post you publish follows this template. Don’t skip steps.

Before writing

  • Target keyword: Pick one primary keyword per post. Check it on keywordseverywhere.com or free tools (Google Keyword Planner, Ubersuggest) for search volume and intent.
  • Intent match: Is the keyword informational (“how to”), commercial (“best X tools”), or transactional (“buy X”)? Match your content format to the intent.
  • SERP analysis: Search the keyword in Google. Look at the top 10 results. What angle are they taking? What length? What format (list, guide, comparison)? Plan to beat them on substance, not just length.

While writing

  • Use the target keyword in: H1 (automatic from title), first 100 words, at least one H2, meta description, URL slug
  • Break content with H2s every 300–500 words
  • Use H3s inside H2s for featured-snippet eligibility
  • Every image needs descriptive alt text (not “image1.jpg”)
  • Internal link to 2–5 related posts on your site
  • External link to 1–2 authoritative sources when you cite data

Before publishing (Rank Math panel at bottom of post editor)

Open the Rank Math sidebar in the post editor:

  • Focus Keyword: Set your primary keyword
  • Rank Math score: Aim for 80+. Don’t obsess over 100 — the last few points often force unnatural phrasing.
  • SEO Title: Auto-filled but verify it’s under 60 characters
  • Meta Description: Write custom, 120–160 characters, include keyword once, end with implicit CTA
  • URL Slug: Short, keyword-rich, no stop words (remove “the”, “a”, “and”)
  • Canonical URL: Leave blank unless this post is a deliberate duplicate
  • Schema: Article is correct for blog posts; switch to HowTo or FAQ if the content fits

After publishing

  • Submit the URL to Search Console → URL Inspection → paste URL → “Request Indexing”
  • Share on your social channels (generates crawl signals via referral traffic)
  • Add the post to your internal link audit — which older posts should link to this new one?

Step 8 — Internal linking

Internal links are how Google discovers pages and how PageRank flows through your site. This is the single most underused SEO lever on WordPress sites.

The hub-and-spoke model

Pick your three to five most important pages (typically: homepage, top service page, top blog post, pricing, contact). These are hubs.

Every other page on your site should link to at least one hub, naturally, within the content.

Your homepage and hub pages, in turn, should link to related supporting pages.

Tools that help

  • Rank Math → SEO Analysis runs a content audit that flags pages with few internal links
  • Link Whisper ($77/year) suggests internal link opportunities as you write
  • Manual audit: once a quarter, spend 30 minutes opening each hub page and checking: does it link to every related supporting post?

Anchor text rules

  • Use descriptive anchor text that tells readers (and Google) what the destination is
  • Avoid “click here”, “read more”, “this article”
  • Don’t over-optimize with exact-match keyword anchors on every link — Google’s algorithms flag this as manipulative. A mix of branded, descriptive, and keyword anchors is natural.

Step 9 — Common WordPress SEO mistakes

Avoid these and you’re ahead of 80% of WordPress sites.

Duplicate tag and category archives. If you have a tag called “WordPress” and a category called “WordPress”, they compete. Pick one taxonomy — usually categories for broad topics, tags sparingly for cross-cutting themes.

Thin author archives. Every user who’s published a post gets an author archive page by default. If you’re a solo site, noindex these in Rank Math (Titles & Meta → Misc Pages).

Images without alt text. WordPress doesn’t enforce alt text. Install the “A11y Alt Text” plugin or manually audit your media library. Every image needs a descriptive alt.

Using the “uncategorized” default category. Every post gets assigned to “Uncategorized” unless you explicitly change it. This creates a useless archive page. Either rename it to something meaningful or ensure every post is assigned to a real category.

Keeping a staging URL indexed. If your staging site at staging.yoursite.com has Search Engine Visibility enabled, Google indexes both staging and production — duplicate content penalty. Either noindex the staging subdomain or password-protect it.

Not redirecting old URLs after a migration. If you just migrated from an AI builder and changed URL structures, set up 301 redirects from old URLs to new ones. Rank Math’s free Redirections module handles this. Skipping this step throws away any existing domain authority.

First-30-day checklist after launch

Day 1:

  • All Step 1–6 configurations complete
  • Sitemap submitted in Search Console
  • GA4 receiving data
  • Homepage tested in Rich Results Test → eligible for rich results

Day 7:

  • Check Search Console Coverage report → address any “Crawled — currently not indexed” pages
  • Review Core Web Vitals in PageSpeed Insights → all three metrics in “Good” range
  • Publish first post using the per-post workflow from Step 7

Day 14:

  • Run the Rank Math SEO Analysis site-wide → fix flagged issues
  • Verify at least 10 internal links between published pages
  • Check Search Console Performance report → any queries showing impressions yet?

Day 30:

  • Full backlink audit using Ahrefs Webmaster Tools (free) or Ubersuggest
  • Content calendar for next 90 days, targeting specific keywords
  • Compare Week 1 vs Week 4 Search Console data → trend direction is more important than absolute numbers

FAQ

Rank Math vs Yoast — does it actually matter? Not for final rankings. Both plugins, properly configured, emit the same kinds of schema and meta tags. The difference is ease of use and feature availability on the free tier. For 2026 setups, Rank Math is the default recommendation. For established sites already on Yoast, the migration effort isn’t worth the marginal improvement.

Do I need paid SEO tools to rank? To rank at all: no. Everything in this guide uses free tools (Rank Math free, Search Console, GA4, PageSpeed Insights, Google’s Rich Results Test). To scale content and compete for high-volume keywords: yes — paid tools like Ahrefs, Semrush, or Surfer SEO save massive amounts of research time. Start free, upgrade when you’re publishing 4+ posts per month.

My site was built on Lovable/v0/Bolt and I want to move to WordPress — should I DIY the migration? If you have Elementor/WordPress experience, yes. If not, the combination of rebuilding the design, transferring content, setting up SEO properly, and testing Core Web Vitals typically takes 20–60 hours for first-timers — and one missed redirect can throw away existing domain authority. See our migration pricing if you want a fixed-scope alternative — or read the SEO-specific comparison posts for Lovable, v0, and Bolt.new to understand what you’re trading off.

How long until my new WordPress site starts ranking? Brand-new domain: 3–6 months for any rankings, 6–12 months for meaningful traffic. Existing domain migrated to WordPress (with 301 redirects preserving URL structure): can see ranking lift within 2–4 weeks because domain authority carries over.

Should I block AI crawlers (GPTBot, ClaudeBot, etc.) in robots.txt? Judgment call. Blocking them prevents your content from training the models and being used as source material. Allowing them gives your brand visibility when people ask AI assistants questions in your space. For most commercial sites in 2026, allowing AI crawlers is the pragmatic choice — the citation traffic is already meaningful.

What’s the one thing I should focus on if I only have time for one? Content quality. Technical SEO gets you eligible to rank. Content quality gets you ranked. A site with perfect schema and thin 400-word posts will always lose to a site with average schema and substantive 1,500-word posts that actually answer the reader’s question.

The honest bottom line

WordPress SEO in 2026 isn’t hard — it’s tedious. The settings in this guide aren’t secrets; they’re the same settings SEO professionals have been using for years, updated for current plugins and current Google behavior.

What separates sites that rank from sites that don’t, in my experience, is mostly follow-through:

  1. Did you actually run through every step, or did you skim and assume the defaults were fine?
  2. Are you publishing regularly (at least twice a month), or hoping the technical setup alone will deliver traffic?
  3. Are you measuring and iterating based on Search Console data, or checking rankings once and forgetting about it?

If you want the technical setup handled and a content engine built alongside your migration, get in touch — most of our Pro-tier migration projects include the full setup from this guide, done in 7 days. Starter and Standard tiers focus on the rebuild; SEO setup is an add-on or DIY.

Either way: this guide is yours to work through at your own pace. The first hour of setup pays back for years.

2 slots left this week

Ready to turn your AI prototype into a real WordPress site?

Free audit. 7-day delivery. No lock-in. Let's talk.

24-hour audit turnaround Fixed-scope quote No obligation