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

by

·

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.

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.

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.

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

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.

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.


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 →