How to Add llms.txt in WordPress Without Touching Your Theme

WordPress runs 41.2% of all websites, according to W3Techs survey data collected on 3 August 2026. llms.txt is a plain Markdown file at your domain root telling language models what your site is and which pages matter; Jeremy Howard published the proposal on 3 September 2024. Most answers to how to add llms.txt in WordPress stop the moment the file returns a 200 status. This page walks the plugin route end to end, then fixes the two defaults that make the generated file useless on a real content site.
What matters here:
- The short version of how to add llms.txt in WordPress: install Website LLMs.txt, cut the post types back, take over the descriptions, confirm a 200 status with a
text/plaincontent type.- The plugin reports over 40,000 active installations, requires WordPress 5.8 or higher and is tested up to WordPress 6.9.5, per its listing for version 8.5.6.
- Yoast SEO's own implementation lists the 5 latest updated posts from the last 12 months, cornerstone content first, and rebuilds weekly.
- Chrome's Lighthouse agentic browsing audit flags a server error on the file and marks a 404 Not Applicable, so a broken file scores worse than none.
How to Add llms.txt in WordPress in Five Steps
The plugin route needs administrator access and about ten minutes. Website LLMs.txt, a dedicated plugin reporting over 40,000 active installations, needs PHP 7.2 or higher and carries 4.6 out of 5 stars across 12 reviews on its WordPress Plugin Directory listing, published by Ryan Howard.
- Install and activate the plugin. Open Plugins, then Add New Plugin, search for Website LLMs.txt, install and activate. No theme file is edited, so a theme update cannot take the file down with it.
- Open the settings screen. The plugin registers its screen under Settings > LLMs.txt. Version 8.5.2 shipped a fix touching a Tools menu placement, so check both menus if the first looks empty.
- Cut the post types down to real pages. Keep posts and pages, keep any custom post type carrying genuine editorial content, untick everything that exists for internal plumbing.
- Set the regeneration frequency. The options are immediate, daily and weekly. Content updates trigger automatic regeneration on the immediate setting.
- Fetch the file over HTTP. Run
curl -sI https://yourdomain.com/llms.txtand confirm a 200 status with atext/plaincontent type.
The Two Settings That Decide Whether the File Is Worth Serving
Published instructions for how to add llms.txt in WordPress end at step five. The plugin's defaults suit a small install, and a content site with ten years of archives needs two of them changed first.
Post type inclusion is the first. A WordPress install exposes far more post types than a reader ever sees: attachments, revisions, and whatever a page builder registered on activation. Each one that reaches the file spends an agent's attention on a URL answering no question. Jeremy Howard's specification expects an H1 with the site name, a blockquote summary, then H2 sections holding lists of Markdown hyperlinks, each optionally followed by a note. An attachment page has nothing to put in that note.
Description sourcing is the second. The plugin, in its own words, "pulls titles and descriptions from your site, respects SEO plugin settings (Yoast SEO, Rank Math, SEOPress, and AIOSEO), and excludes anything marked as noindex or nofollow". That inheritance saves an afternoon of typing and costs you editorial control. Developers can return their own text through the llms_generator_get_post_meta_description filter. Choosing what belongs in the file at your domain root is a separate exercise from installing anything.
What the Plugin Inherits From Yoast or Rank Math
Every automated route for how to add llms.txt in WordPress inherits a ranking judgement and applies it as an editorial one. Yoast SEO documents its own rule plainly: it "includes the 5 latest updated posts/pages/custom post types in the llms.txt file", limited to content published within the last 12 months, "giving priority to cornerstone content first", alongside "5 categories/tags with the most content pieces attached to them". It writes a physical file into the root using get_home_path() and refreshes it "weekly by a scheduled action".
Recency and volume decide that list. Your pricing page and the technical explainer that wins you clients stay out unless somebody edited them recently. Meta descriptions carry the same defect from the other direction, because they are written to win a click rather than to describe what a page contains. Why the default output describes the wrong thing sets out the argument in full.
| Route | What selects the content | Where descriptions come from | Regeneration | If the root is not writable |
|---|---|---|---|---|
| Website LLMs.txt plugin | Post types you tick on the settings screen | Your SEO plugin's meta descriptions, overridable by filter | Immediate, daily or weekly | Copy written to the uploads folder, served at the root URL through rewrite rules |
| Yoast SEO built in | 5 latest updated items from the last 12 months, cornerstone first, plus the 5 busiest terms | Custom excerpts when present, nothing when absent | Weekly scheduled action | Falls back from get_home_path() to $_SERVER['DOCUMENT_ROOT'] |
| Manual upload over SFTP | You | You | Whenever you remember | You choose the path |

Multisite, and Hosts That Block Writes to the Root
Two deployment shapes decide how to add llms.txt in WordPress when the stack is unusual.
Multisite. The plugin's FAQ answers this directly: "On a network-activated install, each subsite gets its own rewrite rules, and sites created later have rules registered automatically." Each subsite therefore serves its own file, correct for a network of distinct brands and wrong for language variants that should present one description of the whole property.
Read only web roots. Managed hosts frequently mount the web root read only. The Website LLMs.txt plugin handles that by writing a copy into the uploads folder and serving it at the root URL through rewrite rules. Yoast falls back from get_home_path() to $_SERVER['DOCUMENT_ROOT'] and exposes the wpseo_llmstxt_filesystem_path filter. If the rewrite route returns a 404, open Settings > Permalinks and save once to flush the rules. Behaviour differs by stack, which is why where your llms.txt comes from, platform by platform is worth reading before you migrate a client site.
Verify the File, Then Set the Regeneration Cadence
Three checks separate a file that exists from a file that works. Confirm the status is 200 rather than a redirect ending at your 404 template. Confirm the content type is text/plain, because a file served as text/html reaches agents wrapped in your theme. Confirm the body carries real Markdown hyperlinks, since a bare list of URLs fails the structure the specification defines.
Google's own tooling now inspects this. The Lighthouse agentic browsing audit requires the file "in the root directory of your website" and expects it to "provide a concise Markdown summary of your site's purpose and key links". Chrome's documentation states that "Lighthouse flags the pages if a server error occurs when attempting to retrieve the llms.txt file", while a 404 marks the audit Not Applicable because "providing the file is optional at the moment". John Mueller, Search Advocate at Google, set the commercial test in comments reported by Search Engine Journal on 2 June 2026: "When an AI platform that brings you clients complains that it needs the file for your site, then I'd recommend taking the time to create one." The last step in how to add llms.txt in WordPress is the rebuild cadence: immediate for a publishing site, weekly for a brochure site. Full serving checks for status, content type and encoding close the job.
FAQ: How to Add llms.txt in WordPress
How to add llms.txt in WordPress without a plugin?
Write the file locally and upload it to the web root over SFTP or the host's file manager, at public_html/llms.txt on most stacks. Seahawk Media's walkthrough compares four routes to get the file live, and manual upload is the one that survives where you refuse to add another plugin. The cost is maintenance: nothing rebuilds the file when you publish, so it drifts from your live content within weeks.
Does llms.txt work with SEO plugins like Yoast or Rank Math?
Yes. Website LLMs.txt integrates with Yoast SEO, Rank Math, SEOPress and AIOSEO, pulls titles and descriptions from whichever one you run, and excludes any page those plugins mark noindex or nofollow. Running Yoast's own llms.txt feature alongside a dedicated plugin puts two processes on the same root path, so enable one and switch the other off.
Does llms.txt work on WordPress Multisite?
Yes, on a network activated install. The plugin's documentation states that each subsite gets its own rewrite rules and that sites created later have rules registered automatically, so a network of 40 subsites ends up with 40 files. Verify one file per subsite after activation, because a subsite created earlier can carry stale rules until permalinks are flushed.
What if my host doesn't allow writing to the root directory?
The Website LLMs.txt plugin writes a copy into the uploads folder and serves it at the root URL through rewrite rules, satisfying the specification requirement that the file answer at /llms.txt. Yoast writes to get_home_path() and falls back to $_SERVER['DOCUMENT_ROOT'], with the wpseo_llmstxt_filesystem_path filter available when both resolve to the wrong directory.
How La Boétie Ships the Agent Facing Layer
Knowing how to add llms.txt in WordPress takes ten minutes. Deciding what the file says is the work that follows. La Boétie is a venture studio and technical consultancy of 5 to 6 engineers building digital infrastructure clients own outright, with no vendor lock in.
llms.txt Generator. Our self serve tool researches your site, produces the file, and returns a full SEO and GEO audit alongside it. One payment of $25 or 20 € per run, no account and no call: run the llms.txt Generator.
Full stack delivery. Web and mobile builds, AI systems and growth stacks, shipped by the team that wrote Tokemon, a Hebrew and Aramaic tokenizer holding 98.07% root preservation.
Technical consultancy. Architecture audits, technology selection and security reviews for founders holding a prototype an AI coding tool produced in a month.
Conclusion
A plugin puts the file at your root in ten minutes. Two settings behind it decide whether that file earns anything: restrict the post types to pages a human would send a client, and take editorial control of the descriptions. Yoast's rule, 5 recently updated items from the last 12 months, shows how narrow an automated selection runs. Verify the 200 status and the text/plain content type, then set the cadence. That is the whole of how to add llms.txt in WordPress, and every hour after it belongs to editorial work on what the file says.
Sources
Read next
- What belongs in the file at your domain root
- Where your llms.txt comes from, platform by platform
- Why the default output describes the wrong thing
- Serving checks for status, content type and encoding
External sources
- Website LLMs.txt : WordPress Plugin Directory, 2026
- The /llms.txt file : Jeremy Howard, 2024
- llms.txt functional specification : Yoast Developer Portal, 2026
- llms.txt audit, Agentic Browsing : Chrome for Developers, 2026
- Usage statistics and market share of WordPress : W3Techs, 2026
- Google says llms.txt is purely speculative for now : Search Engine Journal, 2026
- How to add llms.txt in WordPress like a pro : Seahawk Media, 2026
- Google adds llms.txt check to Chrome Lighthouse : Search Engine Land, 2026
Questions
How to add llms.txt in WordPress without a plugin?
Write the file locally and upload it to the web root over SFTP or through the host's file manager, at public_html/llms.txt on most stacks. Seahawk Media's WordPress walkthrough compares four routes to get the file live, and manual upload is the one that survives on a site where you refuse to add another plugin. The cost is maintenance: nothing rebuilds the file when you publish, so it drifts from your live content within weeks.
Does llms.txt work with SEO plugins like Yoast or Rank Math?
Yes. Website LLMs.txt integrates with Yoast SEO, Rank Math, SEOPress and AIOSEO, pulls titles and descriptions from whichever one you run, and excludes any page those plugins mark as noindex or nofollow. Running Yoast's own llms.txt feature at the same time as a dedicated plugin puts two processes on the same root path, so enable one and switch the other off before you check the output.
Does llms.txt work on WordPress Multisite?
Yes, on a network activated install. The plugin's documentation states that each subsite gets its own rewrite rules and that sites created later have rules registered automatically, so a network of 40 subsites ends up with 40 files. Verify one file per subsite after activation, because a subsite added before the network activation can carry stale rules until permalinks are flushed.
What if my host doesn't allow writing to the root directory?
The Website LLMs.txt plugin writes a copy of the file into the uploads folder and serves it at the root URL through rewrite rules, which satisfies the specification requirement that the file answer at /llms.txt. Yoast writes to get_home_path() and falls back to $_SERVER[DOCUMENT_ROOT], with the wpseo_llmstxt_filesystem_path filter available when both resolve to the wrong directory.