Skip to content

WordPress SEO Best Practices (2026)

A comprehensive checklist for search-engine optimizing a WordPress project: from the technical foundation to AI optimization.

WordPress — Notes and LecturesLecture 2 of 216 min199 views

Technical SEO: Core Web Vitals

Core Web Vitals is a set of Google metrics that measure real user experience. Since 2024, INP has replaced FID as the interactivity metric.

MetricWhat it measuresTarget
LCP (Largest Contentful Paint)Load speed of the largest element< 2.5 sec
INP (Interaction to Next Paint)Response delay to user actions< 200 ms
CLS (Cumulative Layout Shift)Visual stability (element shifts)< 0.1
Attention

Most websites fail to pass the Core Web Vitals thresholds. Check your metrics monthly via PageSpeed Insights and Search Console.

How to improve

  • LCP: optimize images, use a CDN, enable caching, load hero images eagerly (without lazy load).
  • INP: minimize JavaScript, break up long tasks, use defer or async for non-critical scripts.
  • CLS: set dimensions for images and iframes, don't insert content above the visible area after load.
Tip

Test on real-world data (CrUX / Chrome UX Report), not just in lab conditions. Google evaluates precisely the real experience of users.

Speed and performance

Server-side optimization

  • Use quality managed WordPress hosting with 99.9%+ uptime.
  • Hosting should support PHP 8.3+ and HTTP/2 or HTTP/3.
  • The server should be geographically close to your primary audience (or use a CDN).
  • Enable GZIP or Brotli compression — it reduces data size by 60–80%.

Caching

  • Install one caching plugin: WP Rocket (the simplest), LiteSpeed Cache (for LiteSpeed servers), or NitroPack (the highest CWV pass rate).
  • Enable page cache, browser cache, and object cache.
  • Enable CSS and JS minification.
Attention

Never use two caching plugins at the same time — it causes conflicts, layout breakage, and unpredictable behavior.

Front-end optimization

  • Minify CSS, JavaScript, and HTML.
  • Defer loading of non-critical JS via defer or async.
  • Preload critical resources (fonts, above-the-fold CSS).
  • Remove unused plugins and deactivated themes — each one adds overhead.
  • Limit the number of plugins to the necessary minimum.

Database optimization

  • Regularly clean up post revisions — WordPress stores every change, which bloats the database. Limit the number of revisions in wp-config.php: define('WP_POST_REVISIONS', 5);
  • Delete stale transients, spam comments, and rows in the wp_options table with autoload = yes.
  • Use the WP-Optimize or Advanced Database Cleaner plugin for automated maintenance.
  • A clean database reduces server response time (TTFB), which directly affects Core Web Vitals.

Crawlability and indexing

Sitemap

  • Use the sitemap from an SEO plugin (Rank Math, Yoast) instead of the one built into WordPress — it's basic and has no settings.
  • Submit the sitemap to Google Search Console and Bing Webmaster Tools.
  • Exclude thin/noindex pages from the sitemap.

robots.txt

  • Don't block CSS and JS files — Google renders pages to understand the content.
  • Add the sitemap URL to robots.txt.
  • Use the noindex meta tag (not robots.txt) to hide pages from search.
Attention

robots.txt is only a recommendation for search engines, not a hard prohibition. Google decides for itself whether to follow the directives. robots.txt does not prevent indexing — if there are external links to a page, Google may index it even with Disallow. For reliable hiding from search, use the noindex meta tag.

Example

A basic robots.txt for WordPress:

PHP
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://example.com/sitemap_index.xml

AI bots and robots.txt

With the emergence of AI bots (GPTBot, CCBot, Google-Extended, etc.), there's a temptation to block them in robots.txt. But it's worth understanding the consequences:

Attention

Blocking AI bots = your site disappearing from AI results (ChatGPT, Perplexity, Gemini, etc.). Training AI models and AI search are connected processes. If you block GPTBot, your content will not appear in ChatGPT's answers.

For most sites it's better not to block AI bots — presence in AI answers is becoming an important source of traffic and brand recognition (see the "AI Overviews and GEO" section).

Protecting crawl budget with a WAF

  • Configure a WAF (for example, Cloudflare) to block malicious bots and scrapers that overload the server and waste crawl budget.
  • Use Bot Management to distinguish useful bots (Googlebot, Bingbot) from malicious scrapers.
  • Rate limiting for suspicious User-Agents and IP addresses reduces load and preserves crawl budget for search engines.

General rules

  • Every important page should be reachable within at most 3 clicks from the homepage.
  • Fix all 404 errors and set up 301 redirects.
  • Make sure canonical tags are set correctly on all pages.
  • Crawl budget audit: remove or noindex thin/low-value pages.

Mobile-First indexing

Google fully switched to mobile-first indexing in 2024. The mobile version of your site is the primary version for ranking.

Mandatory requirements

  • Responsive design (single URL, single HTML) — the approach recommended by Google.
  • Content parity — the mobile version must contain the same content, links, and structured data as the desktop.
  • Tap targets a minimum of 48x48 pixels.
  • Font at least 16px — smaller requires zooming and is flagged as an error.
  • No horizontal scrolling.
Attention

If the mobile version has less content, fewer links, or missing structured data — your rankings reflect precisely the mobile (limited) version. Desktop-only optimizations are invisible to Google.

Tip

For local sites, add click-to-call, maps, and business hours — mobile users expect quick access to contact details.

On-Page SEO: meta tags and URLs

Meta tags

  • Title — unique for each page, 50–60 characters. The primary keyword at the beginning works better.
  • Meta description — unique, 150–160 characters. Not a direct ranking factor, but it affects CTR.
  • Add a call to action or a value proposition in the description.
  • Avoid duplicating titles and descriptions between pages.
Tip

Google rewrites 60–70% of descriptions, but quality descriptions are more often left unchanged.

Headings

  • One <h1> per page with the main keyword.
  • Logical hierarchy: H1 > H2 > H3 > H4.
  • Structure content for AI readability: clear headings, lists, tables, FAQ sections.

WordPress Permalinks

  • Use the Post Name structure (example.com/post-name/) — clean, descriptive URLs.
  • Keep URLs short, descriptive, and with keywords.
  • For topic clusters, you can add the category: example.com/category/post-name/.
Attention

Never change permalinks without setting up 301 redirects — it creates massive 404 errors and destroys existing link equity.

Content: quality and E-E-A-T

E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness) is Google's key framework for evaluating content quality.

Content quality

  • Create original, people-first content that demonstrates real experience.
  • Match the search intent of each page: informational, navigational, commercial, transactional.
  • Add original photos, tests, reviews, case studies, and data — Google recognizes and rewards real experience.
  • Build topical authority through content clusters: a pillar page (3,000–10,000 words) + 5–20 subtopic articles, all with internal linking.
  • Update content regularly — freshness signals relevance.

E-E-A-T signals

  • Add author bios with credits, links to social media, and relevant expertise.
  • Create a full-fledged "About Us" page with contact information and editorial policies.
  • For YMYL content (finance, health, law), expert-level credentials are required.
Example

After Core Updates, sites with original content and demonstrations of real experience consistently rise in the rankings, while content farms with generic content suffer significant losses.

AI content

Acceptable ✅

  • AI as an assistant for drafts
  • Content with human editing and fact-checking
  • Adding unique experience and expertise

Dangerous ❌

  • Mass production of AI content without review
  • Scaled content abuse to manipulate rankings
  • Generic AI content without a human perspective
Attention

Google's SpamBrain effectively identifies low-quality AI content. Mass AI content without expert oversight is consistently impacted negatively after Core Updates.

Images

Formats

  • Use WebP or AVIF as primary formats. AVIF gives up to 50% better compression than WebP.
  • Install an optimization plugin: Optimole, Smush, ShortPixel, or Imagify.
  • Enable automatic conversion to WebP/AVIF.

Optimization

  • Alt text — descriptive, with keywords, for every image. Important for accessibility and Google Images.
  • File names — descriptive: seo-checklist-wordpress.jpg instead of IMG_12345.jpg.
  • Compress images before uploading.
  • Use srcset for responsive images.

Lazy Loading and load priority

  • LCP element (hero image) — add the fetchpriority="high" attribute so the browser loads it with priority.
  • The rest of the media files below the fold — loading="lazy".
  • The first 2–3 images (above-the-fold) — load eagerly, without lazy load.
Attention

Lazy loading all images (including above-the-fold) worsens LCP. Always exclude hero images from lazy load and add fetchpriority="high" to them.

Internal linking

Strategic internal linking substantially affects rankings and improves how effectively search bots crawl the site.

Strategy

  • Use the hub-and-spoke model (topic clusters): a pillar page with links to all subtopic articles and vice versa.
  • Use descriptive, keyword-rich anchor text — avoid "click here" or "read more".
  • Link new content to existing relevant pages (and vice versa).
  • Keep important pages within 3 clicks of the homepage.

Audit

  • Regularly check for broken links and orphan pages (pages without a single internal link).
  • Most websites have a broken or ineffective internal link structure.
Tip

The Link Whisper plugin or Rank Math's built-in suggestions help build internal linking systematically.

Structured data (Schema.org)

Pages with structured data get 20–30% more clicks compared to regular results. Google recommends the JSON-LD format.

Essential types

TypeWhere to useWhat it provides
OrganizationHomepageEstablishes the brand entity, Knowledge Panel
Article / BlogPostingArticles and postsRich snippets (author, date, headline)
BreadcrumbListAll pagesNavigation trail in the SERP
FAQPageFAQ sectionsExpanded FAQ rich snippets
LocalBusinessLocal businessKnowledge Panel, map, business hours, contacts in the SERP
Tip

Most of these markup types can be configured through SEO plugins (Rank Math, Yoast) without writing JSON-LD by hand. Be sure to configure Schema through a plugin for automatic generation of Rich Snippets in the results.

JSON-LD example for Article

PHP
<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Article",
    "headline": "Article title",
    "author": {
        "@type": "Person",
        "name": "Author Name"
    },
    "datePublished": "2026-01-15",
    "dateModified": "2026-02-20"
}
</script>

Rules

  • Mark up only content that is present on the page — adding invisible data violates Google's guidelines.
  • Keep the data current (prices, hours, ratings).
  • Validate with the Google Rich Results Test.
  • SEO plugins (Rank Math, Yoast) add basic markup automatically.

WordPress: SEO plugins

Install one comprehensive SEO plugin. Never use two at the same time.

Rank Math

  • Best free feature set
  • Multiple keywords (free)
  • Redirect manager (free)
  • Advanced Schema (free)
  • 404 monitoring (free)
  • Google Indexing API integration

Yoast SEO

  • Best readability analysis
  • Multiple keywords — Premium only
  • Redirect manager — Premium only
  • Basic Schema free
  • Longer history and broader ecosystem
  • Integration with Elementor and WooCommerce

Basic SEO plugin configuration

  • Configure title and description templates — this ensures optimized meta tags even if you forget to set them manually.
  • Enable breadcrumbs — it generates BreadcrumbList Schema automatically.
  • Set up the redirect manager — automatic 301s when a URL changes.
  • Enable internal linking suggestions.

WordPress: theme and hosting

Choosing a theme

  • For new projects, use block themes (Full Site Editor) — they're faster, lighter, and support FSE.
  • Check the theme's mobile PageSpeed score before choosing.
  • Choose a theme with Schema markup support.
  • Make sure the theme is actively maintained and compatible with WordPress 6.7+.
Example

Top block themes by speed: Ollie (22 KB, PageSpeed 99–100), Kadence, Frost, Twentytwenty-Five.

Hosting and SEO

  • Managed WordPress hosting with CDN, autoscaling, and built-in caching — the ideal option.
  • Guaranteed 99.9%+ uptime — sites on unstable servers lose crawl opportunities during downtime.
  • Support for PHP 8.3+ and HTTP/2 or HTTP/3.

HTTPS and security

  • SSL/HTTPS is mandatory across the entire site — a confirmed ranking factor. Chrome shows "Not Secure" without SSL.
  • TLS 1.3 minimum.
  • HSTS headers are mandatory.
  • Check for the absence of mixed content (HTTP resources on HTTPS pages).
  • Keep WordPress, themes, and plugins updated — hacked sites lose rankings and can be deindexed.
Tip

Security and SEO are closely connected. For a detailed security checklist, see the previous lecture of this course.

Strategy

  • Quality and relevance matter more than quantity — one quality link from an authoritative topical site outweighs dozens of low-quality ones.
  • Digital PR — one of the most effective link-building tactics. Significantly more effective than mass guest posting.
  • Publish original research, data, and case studies — original content attracts significantly more links than generic articles.
  • Build links only from topically relevant sources.
Attention

According to Google's guidelines, manipulative link schemes (PBNs, mass exchange, doorway links) are a violation and can lead to lower rankings. Google's algorithms are constantly improving at detecting unnatural link patterns — build your link profile so that it looks organic and natural.

Brand mentions

  • Increase brand mentions through guest blogging, thought leadership, and participation in communities.
  • Brand mentions improve the chances of being cited in AI answers.

AI Overviews and GEO

AI Overviews appear for ~16% of all search queries. GEO (Generative Engine Optimization) is a new discipline of optimizing for AI search engines.

Impact of AI Overviews on SEO

  • AI Overviews lower the CTR for position #1 by 58% (Ahrefs data).
  • 58.5% of searches in the US end without a click.
  • Simple factual queries are the most affected — complex, nuanced, and opinion-based queries still generate clicks.

How to optimize

  • Create clear, authoritative, well-structured content — AI selects sources based on trust, clarity, and relevance.
  • Focus on long-tail and complex queries where AI Overviews perform worse.
  • Build a semantic footprint for your brand across the web — GEO = being the source that AI systems cite.
  • Implement comprehensive structured data for recognition by AI systems.
  • Build brand awareness for direct queries — branded queries are less affected by AI Overviews.
Tip

Diversify your traffic sources — dependence on a single channel is risky. Major publishers have lost 50–55% of organic traffic due to AI Overviews.

Monitoring

  • Google Search Console integrates AI Overviews and AI Mode data into Performance reports starting in 2026.
  • Track citations in Perplexity, ChatGPT, and Gemini.

Google spam policies

Violating Google's spam policies can lead to a manual action, ranking drops, or complete deindexing.

Prohibited practices

ViolationDescription
Site reputation abusePublishing third-party content to exploit your ranking signals ("parasite SEO")
Scaled content abuseMass content production (including AI) to manipulate rankings
Expired domain abuseBuying expired domains to host low-quality content
Link spamBuying links, exchanges, mass guest posting for links
CloakingShowing different content to search bots and users
Doorway pagesCreating gateway pages to redirect users
Hidden textHidden text or links to manipulate search

Monitoring and analytics

Essential tools

  • Google Search Console — the primary SEO monitoring tool. Starting in 2026, it integrates AI Overviews data.
  • Google Analytics 4 — connect it to Search Console for a complete funnel analysis.

Regular checks

WhatHow often
Keyword positions and organic trafficWeekly
Core Web Vitals in Search ConsoleMonthly
Indexing issues in Search ConsoleWeekly
Manual actions in Search ConsoleWeekly
Comprehensive SEO audit (technical, content, backlinks)Quarterly
Tip

Follow the Google Search Central Blog — Google made 3 core updates in 2025. Understanding the changes helps you proactively adapt your strategy.

Common WordPress SEO mistakes

MistakeWhy it hurts
The "Search Engine Visibility" checkbox enabled in Settings → ReadingCompletely blocks indexing. A frequent slip after migrating from staging.
Too many pluginsSlows down the site, creates conflicts and extra DB queries.
Unoptimized imagesThe #1 cause of poor Core Web Vitals.
No keyword researchImpossible to rank for relevant queries without knowing them.
Ignoring search intentHigh bounce rate and low rankings due to mismatch with expectations.
Duplicate content (www vs non-www, HTTP vs HTTPS)Google doesn't know which version to rank and may rank none.
No internal linking strategyOrphan pages are invisible to search engines.
Incomplete or missing Schema markupLoss of 20–30% CTR from rich snippets. Only 30% of sites implement Schema.
SEO as a one-time actionSEO is an ongoing process. Without maintenance, rankings and traffic fall.
Google Search Console not set upBlindness to indexing issues, manual actions, CWV, and keyword data.

International SEO (hreflang)

If a site has multilingual or multiregional versions, hreflang is critically important. Over 65% of international sites have significant hreflang implementation errors.

Rules

  • Each page must reference all of its alternate versions plus itself (self-referencing tag).
  • Always add the x-default tag as a fallback.
  • Use correct ISO codes: ISO 639-1 for the language, ISO 3166-1 Alpha 2 for the region.
  • Specify language + country for precise targeting: uk-UA (Ukrainian for Ukraine), en-UA (English for Ukraine), not just uk or en.
  • Choose one method: HTML head, HTTP headers, or XML sitemaps — and apply it consistently.
Tip

hreflang does not replace the lang attribute in the HTML tag (<html lang="uk">). These are different mechanisms: lang indicates the language of the current page for the browser and screen readers, while hreflang tells search engines about alternate language versions. Use both.

Example for a multilingual site

PHP
<link rel="alternate" hreflang="uk" href="https://example.com/uk/page/" />
<link rel="alternate" hreflang="en" href="https://example.com/en/page/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/uk/page/" />

Multilingual plugins

  • Polylang — a free plugin with hreflang support, convenient for small projects.
  • WPML — paid, the most popular plugin for complex multilingual sites with full hreflang and WooCommerce integration.
  • Both plugins generate hreflang tags automatically — manual configuration is not needed.
Example

Start with a limited set of pages to verify the implementation, then scale. Check for hreflang errors in Search Console monthly.

Action Plan (quick start)

The minimal set of actions for basic SEO optimization of a new WordPress project:

  1. Verify that "Search Engine Visibility" is disabled in Settings → Reading
  2. Install an SSL certificate and configure HTTPS
  3. Set the permalink structure to Post Name (/%postname%/)
  4. Install an SEO plugin (Rank Math or Yoast) and go through the setup wizard
  5. Configure title and description templates in the SEO plugin
  6. Submit the XML sitemap to Google Search Console and Bing Webmaster Tools
  7. Connect Google Analytics 4 and link it with Search Console
  8. Install a caching plugin (WP Rocket, LiteSpeed Cache, or NitroPack)
  9. Install an image optimization plugin and enable WebP/AVIF conversion
  10. Check Core Web Vitals via PageSpeed Insights
  11. Add Organization Schema to the homepage
  12. Set up breadcrumbs and BreadcrumbList Schema
  13. Check the mobile version of the site (content, tap targets, fonts)
  14. Configure robots.txt with a link to the sitemap
  15. Remove unused plugins and deactivated themes
  16. Check canonical tags on all pages
  17. Add alt text to all images
  18. Build basic internal linking (hub-and-spoke)
  19. Set up www → non-www redirects (or vice versa) and HTTP → HTTPS
  20. Create an "About Us" page with contact information
  21. Add author bios to the content
  22. Conduct keyword research for the main pages
  23. Validate structured data with the Google Rich Results Test
  24. Set up Core Web Vitals monitoring in Search Console
  25. Check for the absence of mixed content (HTTP resources on HTTPS pages)

More interesting articles

Read the blog
01 / 06