How to add business schema and allow AI crawlers on WordPress
The short answer
On WordPress, make sure “Discourage search engines from indexing this site” is unchecked under Settings, then Reading, check your robots.txt and any security plugin or host firewall for AI crawler blocks, and add LocalBusiness structured data through your SEO plugin or a small code snippet on your home page. Then test it.
Which AI crawlers matter
AI companies run separate crawlers for search and for training. The search and user crawlers decide whether you can appear in AI answers; training crawlers are a separate choice.
| Crawler | Whose | What it does | If you block it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | Finds pages for ChatGPT search | Your site is not shown in ChatGPT search answers |
| ChatGPT-User | OpenAI | Visits a page when a ChatGPT user’s question needs it | OpenAI says robots.txt may not apply, because a person asked |
| Claude-SearchBot | Anthropic | Indexes pages for Claude’s search | You may be less visible in Claude’s answers |
| Claude-User | Anthropic | Fetches a page when a Claude user asks | Claude can’t retrieve your page for that person |
| PerplexityBot | Perplexity | Surfaces and links sites in Perplexity results | Perplexity says to allow it if you want to appear in its results |
| Perplexity-User | Perplexity | Visits a page during a Perplexity user’s question | Perplexity says it generally ignores robots.txt, because a person asked |
| Googlebot | Builds Google Search, which Gemini can ground answers in | You drop out of Google Search | |
| Google-Extended | A robots.txt token, not a separate crawler: whether Gemini may use your pages for training and grounding | Gemini may not use your pages to ground its answers (Google Search is not affected) | |
| GPTBot, ClaudeBot | OpenAI, Anthropic | Collect pages that may be used to train future models | Signals you don’t want your pages used for training; the search crawlers above are set separately |
Part 1: Let AI crawlers in on WordPress
Check “Search engine visibility”
In your WordPress dashboard, go to Settings, then Reading. If Discourage search engines from indexing this site is checked, WordPress adds a noindex, nofollow tag to your pages asking search engines to ignore the site (WordPress.org). The box is sometimes ticked while a site is being built and then forgotten. Uncheck it and save.
Check your robots.txt
Open your-site.com/robots.txt. If there is no robots.txt file on your server, WordPress serves a basic one for you. Look for lines like these:
# These lines tell ChatGPT's and Perplexity's search crawlers to stay out.
# If you see something like this and want to be recommended, remove it.
User-agent: OAI-SearchBot
Disallow: /
User-agent: PerplexityBot
Disallow: /If you find them, remove them where they were added: many SEO plugins include a robots.txt editor in their tools, or the file may sit in your site’s root folder on your hosting account. Ask whoever built your site if you aren’t sure.
Check security plugins and your host’s firewall
Security plugins and hosting firewalls can block or challenge bots they don’t recognize, and AI crawlers may not be on their list. If AI assistants can’t seem to read your site, look for a bot-blocking or “block AI crawlers” option in your security plugin and your hosting control panel, and ask your host whether they block AI crawlers. If your site uses Cloudflare, see Is Cloudflare blocking AI assistants from your site?
Part 2: Add business structured data on WordPress
Structured data is a small block of code that describes your business (name, address, phone, hours) in a format machines read reliably. Schema.org’s LocalBusiness type covers most small businesses, with more specific types such as Dentist or Plumber. Google explains the fields in its local business guide.
Option 1: your SEO plugin
SEO plugins add structured data for you. Yoast, for example, says its free plugin adds Organization, WebSite, WebPage, Article and Breadcrumb markup automatically, and lists LocalBusiness as part of Yoast SEO Premium and Yoast WooCommerce SEO (Yoast). In your plugin’s settings, look for where you describe your site as an organization or business, fill in your details, and check whether it offers a local business option.
Option 2: add the code yourself
If your plugin doesn’t cover local business details, fill in this example and add it to the head of your home page with a plugin that lets you insert code into the header, or ask your developer to add it to your theme:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Business Name",
"url": "https://www.your-site.example/",
"telephone": "+1-000-000-0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "Your street address",
"addressLocality": "Your city",
"addressRegion": "Your state",
"postalCode": "Your ZIP code",
"addressCountry": "US"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "09:00",
"closes": "17:00"
}],
"sameAs": [
"https://www.example.com/link-to-one-of-your-official-profiles"
]
}
</script>Don’t add a second business description if your SEO plugin already outputs one; two different versions confuse more than they help.
Part 3: Test it
- Run your home page through the Rich Results Test or the Schema.org validator.
- Reload
your-site.com/robots.txtand view your home page’s source to confirm there is nonoindextag. - Ask ChatGPT, Claude, Perplexity and Gemini a question your customers ask. Changes show up only after each assistant re-reads your pages.
Checklist
- “Discourage search engines from indexing this site” unchecked
- robots.txt has no Disallow lines for the AI search crawlers you want
- Security plugin, host firewall and Cloudflare checked for AI bot blocking
- One LocalBusiness (or more specific) description of your business, from your plugin or your own code
- Markup passes the Rich Results Test or the Schema.org validator
- Business details in the markup match your Google Business Profile
Frequently asked questions
Does WordPress block AI crawlers by default?
No. A standard WordPress install doesn’t block AI crawlers. Blocks usually come from the “Discourage search engines” setting, a robots.txt rule someone added, a security plugin, or your host’s or CDN’s firewall.
Does Yoast SEO add LocalBusiness schema?
Yoast says its free plugin automatically adds structured data such as Organization, WebSite, WebPage, Article and Breadcrumb, while LocalBusiness is listed as part of Yoast SEO Premium and Yoast WooCommerce SEO. Other SEO plugins have their own options, or you can add the markup yourself.
I use WordPress.com. Is anything different?
WordPress.com has its own privacy settings, including an option to prevent third-party sharing of your public content with partners such as companies that train AI models. That is a training choice. Some WordPress.com plans don’t allow plugins, which affects how you add structured data.
Sources
- WordPress.org documentation: Settings Reading screen (Search engine visibility)
- WordPress.com Support: Privacy settings
- Yoast: Structured data features
- OpenAI: Overview of OpenAI crawlers
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Perplexity: Perplexity crawlers
- Google: Google’s common crawlers (including Google-Extended)
- Google Search Central: Introduction to robots.txt
- Google Search Central: Local business structured data
- Schema.org: LocalBusiness
- Google Rich Results Test
- Schema.org Markup Validator
See what AI says about your business
The free Citable Search scan asks ChatGPT, Claude, Perplexity and Gemini a question your customers ask, 3 times each, and shows whether they name you, who they recommend instead, and your top 3 fixes in plain English. No card needed.
Start a free scan