WordPress llms.txt: How to Create, Add, and Validate It

by

·

WordPress llms.txt: How to Create, Add, and Validate It

By maxaeo.ai | Published 2026-11-03 | Updated 2026-11-03

WordPress llms.txt is a plain-text Markdown file published at the root of a website, usually at https://example.com/llms.txt. It gives AI systems a concise map of important pages, but it does not guarantee rankings, citations, or visibility in ChatGPT, Gemini, Google AI Overviews, or other answer engines.

WordPress llms-txt file structure shown in a website root directory

The practical goal is simple: make your most important public information easier to discover and interpret. The file is an emerging convention, not a replacement for technical SEO, structured data, crawlability, or accurate on-page content.

What is llms.txt in WordPress?

An llms.txt file is a curated Markdown document that identifies a website, summarizes its purpose, and links to selected pages. On WordPress, it should resolve from the domain root rather than from a blog post, theme folder, or /wp-content/ directory. The structure of that document, with a complete example, is covered in our llms.txt guide.

A useful file normally includes:

  • A site name and short description
  • Product, service, or category pages
  • Documentation or support pages
  • About, contact, and policy pages where relevant
  • A small number of authoritative articles
  • Optional links to an llms-full.txt file, if one is maintained

The important distinction is curation. An automatically generated file that lists every tag, author archive, thin post, and duplicate URL may be less useful than a short file containing 20 carefully selected pages.

WordPress.com describes llms.txt as a Markdown-formatted file placed at the root of a domain and recommends prioritizing high-value pages rather than publishing an unfiltered link dump. (wordpress.com)

Does llms.txt improve AI search visibility?

Publishing the file may improve content discoverability for systems that choose to read it, but there is no universal guarantee that an AI engine will fetch or use it. Major AI providers have not consistently documented llms.txt as a required ranking or citation signal. (wordpress.org)

That makes llms.txt best understood as a low-cost content discovery layer. It can help communicate:

  1. What the site is about
  2. Which URLs represent the business accurately
  3. Which pages explain products, services, or evidence
  4. Where an AI agent should begin reading

It should support, not replace:

  • Search-accessible HTML
  • Clear internal links
  • Descriptive page titles
  • Schema markup where appropriate
  • Consistent brand facts
  • Fast, crawlable pages
  • A well-maintained XML sitemap

For SaaS websites, the strongest value is often not adding more URLs. It is making the correct positioning, documentation, comparison pages, and pricing information easier to identify. To review those signals across the whole site, work through a GEO readiness checklist.

How to create a WordPress llms.txt file

Use this basic structure as a starting point:

# Example SaaS

> Example SaaS helps growing teams manage customer support from one workspace.

## Product

- [Product overview](https://example.com/product): Core features and use cases
- [Pricing](https://example.com/pricing): Plans and billing information
- [Integrations](https://example.com/integrations): Supported tools and connections

## Resources

- [Getting started](https://example.com/docs/getting-started): Initial setup guide
- [Security](https://example.com/security): Security and compliance information
- [Customer support guide](https://example.com/support): Help documentation

## Company

- [About](https://example.com/about): Company background and mission
- [Contact](https://example.com/contact): Contact information

Use absolute HTTPS URLs and short descriptions that explain why each page matters. Avoid promotional claims that are not supported on the linked page.

A practical selection rule is to include pages that answer one of these questions:

  • What does the company offer?
  • Who is it for?
  • How does it work?
  • What does it cost?
  • Why should a buyer trust it?
  • How can a user verify or implement it?

For a deeper validation workflow, see this guide to a llms.txt validator and syntax testing workflow.

Three ways to add llms.txt to WordPress

Method 1: Use an SEO plugin

Several WordPress SEO plugins can generate or serve an llms.txt file. For example, Yoast documents a workflow under its settings for selecting pages included in the file. (yoast.com)

The general process is:

  1. Install or update a compatible SEO plugin.
  2. Open its AI, sitemap, or content settings.
  3. Enable the llms.txt feature.
  4. Select the post types or pages to include.
  5. Review the generated output.
  6. Visit /llms.txt in an incognito browser window.

Plugin-based generation is convenient, but do not assume the default output is strategic. Check whether it includes outdated posts, author archives, private content, taxonomy pages, or URLs with weak descriptions.

Method 2: Upload the file with SFTP or a hosting file manager

For a manually controlled file:

  1. Create a plain-text file named exactly llms.txt.
  2. Open your hosting file manager or SFTP client.
  3. Navigate to the WordPress root directory, often the folder containing wp-config.php.
  4. Upload the file beside the main WordPress files.
  5. Open https://yourdomain.com/llms.txt.
  6. Purge your WordPress, CDN, and server caches if the old response still appears.

The file should be available at the bare domain path. Uploading it to /wp-content/uploads/ does not create the standard root URL.

Method 3: Serve a virtual file through a plugin

Some dedicated plugins generate the response dynamically instead of storing a physical file. This can work well when hosting restrictions prevent root-level uploads.

The trade-off is maintenance and dependency: if the plugin is disabled, misconfigured, or conflicts with another SEO plugin, the public /llms.txt response may disappear or change. Test the live URL after plugin updates.

WordPress llms.txt settings in Yoast SEO and Rank Math

If your WordPress site already runs Yoast SEO or Rank Math, start with the plugin’s own llms.txt setting before you upload a file. Both plugins document where the switch lives and what it controls.

Setting Yoast SEO Rank Math
Where to turn it on Yoast SEO > Settings > Site Features, then LLMS.txt under AI tools. Toggle it on and save. Rank Math SEO > Dashboard, then turn on the LLMS Txt module
Where to edit it Customize llms.txt file, then Manual page selection Rank Math SEO > General Settings > Edit llms.txt
What you can choose The pages you add by hand Post types, taxonomies, a posts and terms limit, and additional custom content
Documented limits Not available for multisite Posts set to noindex are excluded
Message to know "Your llms.txt file couldn’t be auto-generated" means checking the web server’s filesystem permissions The file stays empty until you configure it

After saving, open the public /llms.txt in a private window and compare it with your selection. In Rank Math, if a page you expected is missing, check whether it is set to noindex, because the module leaves those out. In Yoast, manual page selection is the way to keep the file short instead of relying on whatever the default includes.

How to validate WordPress llms.txt

Do not stop after seeing a success message in WordPress. Validate the public response that an external crawler would receive.

Browser test

Open:

https://yourdomain.com/llms.txt

Check that:

  • The response returns HTTP 200
  • The filename is lowercase
  • The content is readable without logging in
  • Links use the correct canonical domain
  • No staging, preview, or localhost URLs appear
  • Important pages are not blocked or redirected unexpectedly

Header test

A command-line check can reveal redirects and content-type problems:

curl -I https://yourdomain.com/llms.txt

A redirect may be acceptable in some setups, but a direct 200 OK response with a text-oriented content type is easier to diagnose and maintain.

Content test

Review the file against the live website:

  • Does the description match the homepage?
  • Are product names and claims current?
  • Do pricing and documentation links work?
  • Are discontinued pages removed?
  • Are important pages missing?
  • Are there duplicate or low-value URLs?

The most useful original quality check is a source-of-truth comparison: select the ten facts an AI assistant must get right, then verify that each fact appears consistently in the linked page, page title, structured data, and llms.txt description. This catches contradictions that a syntax validator cannot detect.

WordPress llms-txt validation checklist with URL, status, links, and content checks

Which source is answering at /llms.txt?

A WordPress site can end up with more than one thing that produces /llms.txt: a physical file uploaded by SFTP, an SEO plugin module, a dedicated llms.txt plugin, or a rule at the host or CDN. When the public file does not match what you configured, work out which source is answering before you edit anything.

  1. List every possible source. Check the root folder (the one with wp-config.php) for an llms.txt file, then check each active SEO or llms.txt plugin for an llms.txt setting.
  2. Pick one owner. Keep the source your team will actually maintain and switch off llms.txt in the others, so a plugin update cannot swap the file without anyone noticing.
  3. Match a detail. Note something unique in the source you kept, such as the exact wording of the site summary, then fetch the public URL. If that wording is missing, a different source is still answering.
  4. Recheck after changes. Fetch the file again after plugin updates, theme changes, host migrations, and after setting pages to noindex.
Symptom Likely cause First check
Public file ignores your plugin settings Another source answers at /llms.txt A physical file in the root folder, or a second plugin
Yoast says the file couldn’t be auto-generated Filesystem permissions Ask your host to check write permissions
Expected page missing from Rank Math output The page is noindex, or the posts and terms limit was reached The page’s robots setting and the limit
No llms.txt option in Yoast Multisite install Use a physical file or another method

Before uploading a manual file, paste it into the free llms.txt generator and validator, which reports syntax issues by line number.

Common WordPress llms.txt mistakes

Treating it like robots.txt

robots.txt provides crawler directives. llms.txt is primarily a curated content guide. One does not replace the other. Our comparison of llms.txt vs robots.txt shows how the two files work together.

Listing the entire site

More URLs do not automatically create more authority. Include the pages that best explain the business and satisfy real buyer questions.

Publishing private or unstable URLs

Do not include draft, member-only, temporary, or frequently changing URLs unless access and accuracy are intentional.

Forgetting cache layers

A newly uploaded file may be hidden behind a page cache, CDN cache, or cached 404. Purge relevant caches and test from outside your logged-in session.

Expecting immediate AI citations

An llms.txt file cannot force an AI platform to mention, recommend, or cite a brand. Measure visibility across real buyer prompts instead of judging success from the file’s existence alone.

For broader measurement, compare AI search brand visibility across platforms and competitors. MaxAEO tracks brand mentions, rankings, sentiment, and citation sources across eight AI engines, with daily monitoring and bilingual market coverage.

How often should you update the file?

Review llms.txt whenever your site changes its positioning, product structure, pricing, documentation, or core URLs. A quarterly review is a reasonable minimum for stable sites; fast-moving SaaS companies may need a monthly review.

Use a simple maintenance log:

Check Recommended action
New product or service Add the canonical overview page
Retired page Remove or replace the URL
Rebrand or repositioning Rewrite the site summary
New documentation Add the most useful entry point
URL migration Update every affected link
AI visibility change Compare cited sources and missing pages

Frequently asked questions

Is llms.txt required for WordPress?

No. WordPress sites can function normally without it, and publishing the file is not a guaranteed requirement for appearing in AI search.

Should I use llms.txt or llms-full.txt?

Use llms.txt as a concise navigation file. Add llms-full.txt only if you can maintain a reliable, complete version of your important content.

Can I add llms.txt without coding?

Yes. You can use a compatible plugin, a hosting file manager, or SFTP. The key requirement is that the public file resolves at /llms.txt.

Does llms.txt replace an XML sitemap?

No. An XML sitemap helps search engines discover URLs. llms.txt provides a human-readable, curated guide for AI-oriented content discovery.

How can I check whether AI engines understand my brand?

Run representative buyer prompts across multiple AI platforms and track mentions, recommendations, sentiment, rankings, and cited sources. A free AI visibility diagnostic can provide a starting point.

Does Yoast SEO create an llms.txt file?

Yes. In Yoast SEO, go to Settings, then Site Features, and under AI tools open LLMS.txt and toggle it on. To control which pages appear, use Customize llms.txt file and choose Manual page selection. Yoast notes the feature is not available for multisite, and says to check the web server’s filesystem permissions if the file couldn’t be auto-generated.

Does Rank Math support llms.txt?

Yes. Turn on the LLMS Txt module from the Rank Math SEO dashboard, then edit it under General Settings, Edit llms.txt. You can pick post types and taxonomies, set a limit on posts and terms, and add custom content. Rank Math excludes posts set to noindex, and the file stays empty until you configure and save it.

Can I run two llms.txt plugins at once?

You can install both, but only one response can answer at /llms.txt, so the file visitors and crawlers see may not be the one you edited. Keep one source, switch off the llms.txt feature in the others, and fetch the public URL after each plugin update to confirm the content still matches your selection.


Written by

Founder of MaxAEO. Helping brands get found in AI search across ChatGPT, Perplexity, Google AI Overviews, and more.

Run a free AI visibility audit →