Skip to content

GEO best practices for a WordPress site

Short answer

Most WordPress GEO problems are settings, not content. Check the search visibility box, the robots.txt your plugins write, and any firewall or CDN that blocks bots. Then keep one sitemap and one structured data source, and measure from logs and search reports.

This guide is for people who run a WordPress site and want it to show up in AI answers from Google, ChatGPT, Perplexity and Copilot. It walks through the WordPress settings, plugins and hosting layers that decide whether AI search can read your pages. A first pass takes an afternoon if you have admin access and can see your CDN or firewall settings.

  1. Make sure WordPress itself isn’t asking search engines to stay away.
  2. Check the robots.txt that WordPress and your plugins actually serve, and allow the AI search crawlers.
  3. Check that your security plugin, host and CDN don’t block those crawlers.
  4. Keep one XML sitemap, from core or one SEO plugin, and submit it.
  5. Let one plugin output structured data, and keep it in line with what the page shows.
  6. Make sure themes and page builders put the main text in the HTML.
  7. Measure with crawler logs and the search engines’ AI reports.

1. Turn off “Discourage search engines”

Section titled “1. Turn off “Discourage search engines””

The most common WordPress block is one checkbox. Staging sites are set up with it on, and it often stays on after launch.

A noindex page fails that test. Check the box is clear, then view the source of a live page and search for noindex.

WordPress generates a virtual robots.txt when no file exists. SEO plugins can edit it, and a physical robots.txt file on the server replaces it. Open https://your-site/robots.txt and read what is there, not what a settings screen says.

  • Allow Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot and PerplexityBot if you want to appear in those products.
  • Decide training crawlers (GPTBot, ClaudeBot, Google-Extended) separately. Rules per token: Configure robots.txt for AI crawlers.
  • Watch for “block AI bots” toggles in plugins. Check which tokens they actually write.

3. Check the security plugin, host and CDN

Section titled “3. Check the security plugin, host and CDN”

A robots.txt that allows a crawler doesn’t help if a firewall answers it with 403 or a challenge page. On WordPress, that firewall can be a security plugin, the host’s bot protection, or a CDN in front of the site.

  • List every layer between the internet and WordPress: CDN, host firewall, security plugin, rate limiter.
  • In each, find the bot or AI setting and note what it blocks.
  • Confirm in logs that verified search crawlers get 200 responses (step 7).

SEO plugins usually replace the core sitemap with their own. Pick one. Then:

  • Check the sitemap URL loads and lists your important pages, not tag archives or attachment pages.
  • Submit it in Google Search Console and Bing Webmaster Tools. Bing feeds Copilot.
  • Background: XML sitemaps and XML sitemaps vs IndexNow.

5. One structured data source, matching the page

Section titled “5. One structured data source, matching the page”

SEO plugins output schema.org markup automatically. Problems start when a theme, a plugin and a page builder each add their own, or when the markup describes things the page doesn’t show.

So treat structured data as housekeeping. Use it to state who publishes the site (Organization structured data) and what each page is (Article structured data). Whether it changes AI citations is an open question: Does structured data change AI search citations?.

  • Run a page through the Rich Results Test and count how many plugins emit markup.
  • Turn off duplicate output in the theme or extra plugins.
  • Fill in the organization name, logo and profiles in the SEO plugin’s settings.

Classic WordPress themes render on the server, so the text is in the HTML. Some sliders, tabs, “load more” blocks and headless front ends load content with JavaScript.

Fetch a page with curl and search for a sentence from the middle of the article. If it’s missing, see JavaScript sites (Next.js, Vue and others): making sure AI crawlers can read your content.

Two more template checks:

Some SEO plugins expose these as per-post or site-wide “advanced robots” options. Search the page source for nosnippet, max-snippet and data-nosnippet. See Snippet controls for AI Overviews and AI Mode.

  • Don’t install several SEO plugins at once. They output competing sitemaps, canonicals and markup (see step 5).
  • Don’t block every “AI bot” in one click. Search crawlers and training crawlers are separate decisions, and blocking OAI-SearchBot removes you from ChatGPT search (step 2).
  • Don’t treat an llms.txt plugin as a fix. There is no evidence it improves AI search visibility: Claim: llms.txt improves AI search visibility.
  • Don’t mass-produce posts with AI plugins. Volume made to manipulate rankings is a spam policy issue: Scaled content abuse.
  • Don’t mark up FAQs, reviews or ratings that aren’t on the page (step 5).
RecommendationEvidence
Clear “Discourage search engines”Official (WordPress, Google)
Allow AI search crawlers in robots.txtOfficial (OpenAI)
Check CDN, host and security pluginOfficial (Google, Cloudflare)
One submitted sitemapOfficial (WordPress)
One structured data source that matches the pageOfficial (Google, Yoast)
Structured data raises AI citationsUnestablished
Main text in server HTMLOfficial (Google)
Measure via logs and AI reportsOfficial (Google, Bing)

Sources

  1. Settings Reading screenWordPress.org · official · ✓ 2026-10-28
  2. New XML Sitemaps Functionality in WordPress 5.5WordPress.org (Make WordPress Core) · official · ✓ 2026-10-28
  3. AI features and your websiteGoogle Search Central · official · ✓ 2026-10-24
  4. Overview of OpenAI crawlersOpenAI · official · ✓ 2026-10-25
  5. Robots meta tag, data-nosnippet, and X-Robots-Tag specificationsGoogle Search Central · official · ✓ 2026-10-25
  6. Block AI BotsCloudflare · official · ✓ 2026-10-28
  7. Structured data - Yoast SEO FeaturesYoast · official · ✓ 2026-10-28
  8. General structured data guidelinesGoogle Search Central · official · ✓ 2026-10-25
  9. Understand JavaScript SEO basicsGoogle Search Central · official · ✓ 2026-10-25
  10. Verify requests from Google crawlers and fetchersGoogle · official · ✓ 2026-10-25
  11. AI Performance report (Bing Webmaster Tools help)Microsoft Bing · official · ✓ 2026-10-24
  12. Generative AI performance report (Search) - Search Console HelpGoogle Search Console Help · official · ✓ 2026-10-25