# AI SEO on WordPress: robots.txt, sitemaps and AI crawlers

> How to check what AI assistants can read on a WordPress site, the one setting that hides your whole site, where WordPress's sitemap lives, and how to add structured data.

Source: https://aiseotop.com/platforms/wordpress (updated 2026-12-01)

WordPress gets most things right by default. The risk is one setting, and the robots.txt rules that plugins or hosts add on top.

## Why isn't my WordPress site showing up in Google?

**Settings → Reading → Search engine visibility → "Discourage search engines from indexing this site."** Since WordPress 5.3, checking it adds a `noindex, nofollow` robots meta tag to every page, and it also turns off WordPress's built-in sitemaps. It's often switched on while a site is being built and forgotten at launch. With it on, Google won't index your pages, so Google's AI Overviews and AI Mode can't cite them either.

## robots.txt

WordPress serves a virtual `robots.txt` when no real file exists in the site root. SEO plugins and some hosts let you edit it, or you can upload your own file. Either way, check what it actually says at `yourdomain.com/robots.txt`. A common mistake is a "block AI bots" rule that also blocks the crawlers behind AI search, such as `OAI-SearchBot` and `PerplexityBot`.

To allow AI search while opting out of OpenAI training:

```
User-agent: OAI-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /
```

Our [AI crawler checker](https://aiseotop.com/tools/ai-crawler-checker) reads your file and tells you what each AI crawler is allowed to do.

## Sitemaps

Since WordPress 5.5, core generates a sitemap index at `/wp-sitemap.xml` and adds it to the virtual robots.txt automatically. SEO plugins often replace it with their own. Submit whichever one you use in Google Search Console and Bing Webmaster Tools.

## Structured data

Most SEO plugins add basic Organization and article markup. For a local business, add a `LocalBusiness` block with your real address and hours. Our [schema generator](https://aiseotop.com/tools/schema-generator) writes it for you to paste into a custom HTML block or your theme's header.

## Sources

- WordPress.org, [Settings Reading screen](https://wordpress.org/documentation/article/settings-reading-screen/)
- WordPress core, [New XML sitemaps functionality in WordPress 5.5](https://make.wordpress.org/core/2020/07/22/new-xml-sitemaps-functionality-in-wordpress-5-5/)
