WordPress llms.txt: What It Is, How to Add It, Does It Help?
Publish an llms.txt file on WordPress three different ways, and see what Google and the AI companies have published about whether anyone reads it.
llms.txt is a plain markdown file, usually at the root of your domain (https://example.com/llms.txt), listing your best pages with a one-line description for each, so a language model can find your useful content without crawling your entire navigation. It is a proposal, not a standard, and no major AI provider has publicly confirmed that it reads or acts on the file.
Both halves of that matter. The format is real, well-specified, and quick to publish. The benefit is unproven, and the section below checks the usual claims about it against what Google and the AI companies have published.
TL;DR: llms.txt is a curated markdown link list, normally at your site root. No AI company has confirmed using it, and Google says you don’t need one to appear in its AI features. It costs one small file to add, so publish it as cheap optionality if you like, but do it with a correctly configured robots.txt already in place, because that is the file with a documented effect on AI crawlers today. If you want to keep some of them out, see how to block AI crawlers in WordPress.
What the file actually looks like
The proposed format is markdown with a defined shape: an H1 with your site name (the only required part), an optional blockquote summary, optional paragraphs of context, then H2 sections containing bullet lists of links, each with a short description after a colon. A section named “Optional” signals content that can be skipped when context is tight.
# Odie Themes
> Free WordPress tools and technically honest guides for theme
> and image configuration problems.
## Guides
- [Why WordPress images look blurry after upload](https://example.com/guides/wordpress-image-blurry-after-upload/): Why the 2560px cap creates a -scaled file and how to raise or disable it.
- [WordPress llms.txt](https://example.com/guides/wordpress-llms-txt/): What the file is, how to add one, and what it does not do.
## Tools
- [Robots.txt generator](https://example.com/tools/wordpress-robots-txt-generator/): Build a robots.txt with correct AI crawler rules.
## Optional
- [About](https://example.com/about/): Who runs the site.
Links should be absolute. Descriptions should be one sentence and factual, not marketing copy. The entire premise is that a machine is reading it, and padded adjectives waste the tokens you were trying to save.
The current version of the proposal on llmstxt.org adds two things older tutorials miss. A file can sit at a subpath, such as /docs/llms.txt, and covers the pages under that path. And it suggests offering a clean markdown copy of each page at the same URL with .md added (page.html.md) or swapped in (page.md), linked from the HTML with <link rel="alternate" type="text/markdown">.
You will also see llms-full.txt, a file holding the full text of a site as one markdown document. The current llmstxt.org proposal does not mention it. This site publishes one, because on a static site it is generated at build time and costs nothing to serve. On a WordPress site it means a large file to keep in sync with your content, for a benefit nobody has confirmed. Skip it unless you have a specific reason.
Does any AI company read llms.txt?
No public documentation from OpenAI, Anthropic, Google, or Perplexity states that their crawlers or retrieval systems consume llms.txt. Google goes further. Its page on AI features in Search says: “You don’t need to create new machine readable files, AI text files, or markup to appear in these features.” Robots.txt is different: Google documents how it follows robots.txt, and every major AI operator documents robots.txt tokens for its crawlers. If your own server logs show requests for llms.txt, read them with care: a log line records that something downloaded the file, not that its content shaped any answer.
So be careful with the claims you accept:
| Claim you will see | Status |
|---|---|
| ”llms.txt is the new robots.txt for AI” | False. robots.txt is a standard that AI operators document; llms.txt is a proposal. |
| ”Adding llms.txt improves your Google rankings” | No evidence. Google says no AI text file is needed for its AI features. |
| ”ChatGPT reads your llms.txt” | Unconfirmed by OpenAI. |
| ”It’s a cheap file to publish” | True, and this is the only solid argument for it. |
The reasonable position is cheap optionality. A static text file costs you one upload, zero page-load time, and no risk. If the convention gets adopted, you already have one. If it never does, you lost a few minutes. Just do not let anyone bill it as an AI visibility strategy.
Adding it to WordPress
Option 1: static file at the root (recommended)
Write the file locally, then upload it over SFTP into the same directory as your wp-config.php and index.php.
WordPress does not intercept it, because the default WordPress rewrite block in .htaccess only routes requests that do not already match a real file or directory:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
A real llms.txt on disk fails the !-f condition, so Apache serves it directly and PHP never runs. On nginx, a try_files $uri $uri/ /index.php line should have the same effect. The nginx try_files documentation says it checks the listed files in order, uses the first one it finds, and falls back to the last parameter only when none exists. We tested the Apache case, not nginx.
If your host does not let you write files to the web root, use option 2 or 3 instead.
Option 2: a plugin
Plugins can build the file from your published posts and pages, which is useful if you publish often, because a hand-written list goes stale. Two examples with their own documentation:
- Website LLMs.txt on wordpress.org generates an
llms.txtindex of your public URLs. Its listing showed 50,000+ active installs and “tested up to 6.9.11” when we checked in November 2026. - Yoast SEO has an llms.txt switch under Yoast SEO → Settings → Site features → AI tools, according to Yoast’s own help page.
The trade-off is real, though. You are adding a plugin, a settings page, and an update surface in exchange for automating a file nobody has confirmed reading. Auto-generated lists also tend to dump every post with the excerpt as its description, which produces a long, undifferentiated file, the opposite of the curated map the format was designed for. If you use a plugin, prune what it outputs.
Option 3: serve it from a must-use plugin
If you cannot write to the web root but can add code, keep the file in wp-content/ and drop a small mu-plugin at wp-content/mu-plugins/llms-txt.php that serves it:
<?php
// wp-content/mu-plugins/llms-txt.php
// Serves wp-content/llms.txt at /llms.txt.
add_action( 'init', function () {
$path = parse_url( $_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH );
if ( '/llms.txt' !== $path ) {
return;
}
$file = WP_CONTENT_DIR . '/llms.txt';
if ( ! is_readable( $file ) ) {
return;
}
header( 'Content-Type: text/plain; charset=utf-8' );
readfile( $file );
exit;
} );
The file lives in wp-content/, outside any theme, so it survives a theme switch and a theme update. Another version of this snippet reads the file from the active theme’s folder with get_stylesheet_directory() instead, which loses it on the first theme switch. We tested both on 2026-11-16 in WordPress Playground (WordPress 7.1.4, PHP 8.3):
| Version | Active theme | /llms.txt result |
|---|---|---|
Reads the theme folder, file in twentytwentyfive/ | Twenty Twenty-Five | 200, text/plain; charset=utf-8 |
| Same | Switched to Twenty Twenty-Four | 404, the theme’s HTML error page |
Reads WP_CONTENT_DIR, file in wp-content/ | Twenty Twenty-Four | 200, text/plain; charset=utf-8 |
| Same | Switched to Twenty Twenty-Five | 200, text/plain; charset=utf-8 |
| Same, file removed | Twenty Twenty-Five | 404, the theme’s HTML error page |
Verify it is actually served
Do not assume. Check the status code and the content type:
curl -sI https://example.com/llms.txt

llms.txt in the web root and the default WordPress rewrite rules in place. This test server ran no full WordPress.You want 200 and Content-Type: text/plain. Two failure modes are common:
- You get a 404 HTML page. WordPress handled the request and found nothing. The file is not where you think it is, or the mu-plugin is reading a different path.
- You get
Content-Type: text/htmlwith a 200. Something is rendering the request through the theme, or a plugin is hijacking the route. Fix the header before worrying about the content.
Then open the URL in a browser and read it. If a link 404s or points at http:// when your site is HTTPS, fix it. A broken map is worse than no map.
What actually controls AI crawlers today
If your real goal is influencing how AI systems treat your site, robots.txt is the file with a documented mechanism. OpenAI, Anthropic, Google, Apple, Perplexity, Amazon and Common Crawl each document robots.txt tokens for their crawlers, and some of those tokens control training while others control whether you appear in AI search answers. The AI crawler token table lists each one with the operator’s own page.
Build yours with the robots.txt generator, which lets you allow or block the common AI crawlers explicitly instead of guessing at the syntax. Get that right first, then add llms.txt as the cheap speculative extra.
What not to do
Do not block AI crawlers in robots.txt and publish an llms.txt at the same time. One file invites the model in, the other closes the door, and the door wins. If what you want gone is an AI panel in your dashboard, that is a different job, covered in disabling WordPress AI features.
Do not put a lone llms.txt in a random subfolder. The proposal allows a file at a subpath, but it covers only the pages under that path. A single file at /blog/llms.txt with no root file says nothing about the rest of your site.
Do not paste your whole sitemap into it. Four hundred links with generic excerpts is a crawl dump, not a curated map, and it defeats the only stated purpose of the format. List the pages you would point a new reader to first, and stop there. For scale, this site’s own hand-written /llms.txt has 64 links in 8 sections, about 10 KB.
Do not delay real work for it. Page speed, clean HTML, accurate structured data, and content people actually cite are known to matter. llms.txt is not known to matter. Order your effort accordingly.
Sources
- llms.txt proposal: llmstxt.org
- Google Search Central: AI features and your website, Introduction to robots.txt
- WordPress.org Plugin Directory: Website LLMs.txt
- Yoast: How to enable llms.txt with Yoast SEO
- Apache HTTP Server 2.4: mod_rewrite
- nginx: ngx_http_core_module, try_files
William Lopez is the founder of Odie Themes. He builds the free WordPress tools and themes on this site and has been on WordPress.org since December 2019.
FAQ
Questions
What is llms.txt in WordPress?
It is a plain markdown file, usually at yoursite.com/llms.txt, that lists your most useful pages with a one-line description each. The idea is that a language model reading it gets a clean map of your content instead of crawling your navigation, ads, and cookie banners.
Do AI companies actually read llms.txt?
There is no public confirmation from OpenAI, Anthropic, Google, or Perplexity that they fetch or use llms.txt, and Google says you don't need AI text files to appear in its AI features. If your server logs show requests for the file, a request is still not the same as the content influencing an answer.
Where does llms.txt go on a WordPress site?
Usually the root of your domain, the same place robots.txt lives, so the URL is yoursite.com/llms.txt. The llmstxt.org proposal also allows a file in a subpath such as /docs/llms.txt, covering the pages under that path. Upload a root file next to your WordPress index.php; the web server serves real files without running WordPress.
Is llms.txt the same as robots.txt?
No. robots.txt is an established standard, and AI operators such as OpenAI, Anthropic, Google and Perplexity document robots.txt tokens for their crawlers. It controls whether a crawler may fetch your pages at all. llms.txt is an unratified proposal that suggests what to read.
Does adding llms.txt help SEO or rankings?
There is no evidence it affects Google rankings, and Google says no AI text file is needed to appear in its AI features. It costs almost nothing to publish, so the reasonable case for adding it is cheap optionality rather than measurable benefit. Do not deprioritize page speed, structured data, or content quality for it.
Should I use a plugin or a static file for llms.txt?
Use a static file if your best pages rarely change, because it adds zero PHP execution and cannot break. Use a plugin if you publish often and want the list rebuilt automatically. A plugin adds a dependency and some overhead for a file nobody has confirmed reading, so start static.