llms.txt for WordPress: 3 Ways to Add It — Rank Math, Yoast or Manually (2026)

Adding an llms.txt for WordPress site owners keep Googling is, for once, easier than the search results make it look. If your site runs WordPress, you almost certainly do not need a new plugin, a developer, or FTP access: both major SEO plugins — Rank Math and Yoast SEO — now generate the file from settings you already have. This guide shows all three ways to do it (Rank Math, Yoast, and fully manual), what each method actually produces, and how to check the result. We know the Rank Math route first-hand: this very site’s llms.txt file is generated by it.

Short on the background? Our explainer What Is an llms.txt File? The Complete Guide covers what the file is and why it exists. Running a store instead? See llms.txt for Shopify: How to Check and Customize Yours.

Before you start: one method only

Pick one of the three methods below and stick to it. If a physical llms.txt file exists in your site’s root folder, your web server serves that file first and any plugin-generated version is ignored — the most common reason people edit plugin settings and see no change at yoursite.com/llms.txt. Choose the plugin method if you already run Rank Math or Yoast; choose manual only if you run neither, or you want total control and accept the upkeep.

Method 1: llms.txt for WordPress with Rank Math (free)

Rank Math keeps the feature in a module that starts switched off. Per Rank Math’s own documentation:

  1. Go to Rank Math SEO → Dashboard and find the LLMS Txt module. Toggle it on. (If it is missing, update Rank Math first.)
  2. Click the module’s Settings icon, or go to Rank Math SEO → General Settings → Edit llms.txt.
  3. Select the post types to include — Posts, Pages, or both. Rank Math lists each item’s title, URL and a short description.
  4. Select taxonomies if you want category or tag pages listed too.
  5. Set the posts/terms limit. The default is 100 — for most sites that is far too many (see the curation note below). Trim it.
  6. Use the Additional Content field for any hand-picked links or notes you want in the file, one per line.
  7. Click Save Changes, then open yoursite.com/llms.txt and read what was generated.

Two details worth knowing: posts set to noindex are excluded automatically, and the file is empty until you configure it — enabling the module alone is not the finish line. And yes, this is in the free plugin: LLMS Generate’s own file, linked above, is produced by the free version on this site.

Method 2: llms.txt with Yoast SEO

Yoast takes the opposite approach — set-and-forget generation with an optional hand-picked list. Per Yoast’s help documentation:

  1. Go to Yoast SEO → Settings → Site features.
  2. Under AI tools, find llms.txt and toggle it on (it turns purple with a checkmark).
  3. Click Save changes. Yoast generates and serves the file at yoursite.com/llms.txt.
  4. To control the contents, use Customize llms.txt file → Manual page selection, choose the pages you want highlighted, and save again.

Know what the automatic mode does before trusting it: Yoast builds the file from your recently updated content, giving priority to cornerstone content, and refreshes it roughly weekly. That is convenient on a large site and risky on a neglected one — automatic selection reflects what changed lately, not necessarily what matters most. Use manual selection if your homepage, key guides or service pages are not surfacing. (One caveat from Yoast’s release notes: the feature is not available on multisite installs.)

Method 3: Add llms.txt to WordPress manually (no SEO plugin)

  1. Write the file. In a plain-text editor, create a document named exactly llms.txt in Markdown: an H1 with your site name, a one-sentence summary, then grouped sections of links with short, factual descriptions. Our free llms.txt generator can draft this from your site’s pages in your browser.
  2. Upload it to the root. Using your host’s File Manager (cPanel, hPanel or similar) or FTP, place the file in the same root folder as your WordPress installation’s top level — it must resolve at yoursite.com/llms.txt, not inside a subfolder. If WordPress lives in a /blog/ subfolder, the file still belongs at the domain root.
  3. Verify. Visit yoursite.com/llms.txt. You should see raw plain text — not a 404, and not your theme’s HTML wrapped around it.
  4. Maintain it yourself. A static file never updates. Re-upload it whenever you add, rename or retire an important page; a stale index is worse than none.

Which method should you choose?

Method Best for Control Upkeep
Rank Math Sites already on Rank Math that want fine control over what’s listed High — post types, taxonomies, limits, extra content Low — updates as your content changes
Yoast SEO Sites already on Yoast that want it handled automatically Medium — automatic selection, or manual page picking Lowest — refreshes weekly
Manual file No SEO plugin, or full hand control Total — you write every line High — every change is yours to make

Already running a different SEO plugin? Several others added llms.txt generation during 2025–2026, so check your plugin’s settings for an llms.txt or “AI tools” section before installing anything new.

Curate the file — this is where most sites go wrong

Whichever method you pick, generated output is a starting point, not a finished file. Plugins default to listing lots of links (Rank Math’s default cap is 100 per post type); AI assistants read a curated map far better than a sitemap dump. Aim for the pages you would hand a smart new hire on day one: your homepage and about page, your 5–15 most important posts or services, key category pages, and factual policy/contact pages. Write descriptions that say what the page actually does, in plain words — not slogans. Then re-read yoursite.com/llms.txt once a quarter; five honest minutes beats a perfect file from two years ago.

An honest note on results

Set this up because it is cheap, standard and increasingly expected — not because it is a ranking lever. Google has stated that llms.txt does not affect Google Search rankings, and no AI company guarantees citations from it. What the file does is represent your site accurately to the AI assistants and agents that increasingly answer questions about it. On WordPress, where the feature is already sitting inside your SEO plugin, there is little reason to leave the job undone — or to pay anyone to “install” it for you.

FAQ

Is Rank Math’s llms.txt feature free?
Yes — it is a module in the free Rank Math plugin (Dashboard → LLMS Txt). This site’s own llms.txt is generated by the free version; you can open it from the link in the introduction and see the credit line yourself.

Rank Math or Yoast — which llms.txt is better?
Rank Math gives you more control (post types, taxonomies, limits, custom lines). Yoast is more hands-off (automatic selection, weekly refresh) with a manual override. Use whichever plugin your site already runs; switching SEO plugins just for this file is not worth it.

My plugin settings changed but /llms.txt did not — why?
Almost always a physical llms.txt file in your site root is overriding the plugin’s version. Delete or update that file (or drop the plugin method and maintain the file manually) so only one method is live.

Does llms.txt help my WordPress site rank on Google?
No. Google has said llms.txt has no effect on Search rankings. Its audience is AI assistants and agents, not the classic search index.

How often should I update the file?
With a plugin, check it quarterly and after big content changes. With a manual file, update it every time an important page is added, renamed or removed.

Last verified: October 2026. Steps are from Rank Math’s and Yoast’s official documentation, linked above, and the Rank Math method is the same setup generating this site’s own llms.txt. Menu names can shift between plugin versions — if a step looks different, check your version against the linked docs. This guide was drafted with AI assistance and fact-checked by our editorial team against the sources cited.

5 thoughts on “llms.txt for WordPress: 3 Ways to Add It — Rank Math, Yoast or Manually (2026)”

Leave a Comment