Skip to content
Arrow keys to move, Enter to open, Esc to closeAll results
AI · Guides

How to Create an llms.txt File for WordPress

llms.txt is a plain-text map of your site written for AI tools. Here is what goes in it, how to add one to WordPress, and what to expect from it.

Written by
WPresident Editorial
Updated
November 2026
Topic
AI

An llms.txt file is a plain-text Markdown file at the root of your site, such as example.com/llms.txt, that gives AI tools a short, curated map of what your site contains. It was proposed in 2024 as a companion to robots.txt and sitemap.xml: those tell crawlers what they may fetch, while llms.txt tells a language model what is worth reading.

The llms.txt proposal website
The llms.txt proposal at llmstxt.org.

Set expectations first

llms.txt is a proposal, not an official web standard. Support among AI products is uneven, and major search engines have said they do not use it for ranking. The file is cheap to create and harmless to publish, so it is worth doing, but do not expect traffic from it by itself.

What goes in the file

The format is simple Markdown:

  1. An H1 with the site or project name.
  2. A short summary in a blockquote.
  3. Optional paragraphs of context.
  4. H2 sections containing lists of links, each with a one-line description.
  5. An optional section named “Optional” for pages that can be skipped when space is short.
# Example Store

> Handmade ceramics, shipped worldwide. Tableware, planters and gift sets.

## Key pages
- [Shop](https://example.com/shop/): all products by category
- [Shipping and returns](https://example.com/shipping/): delivery times, costs and the returns policy

## Guides
- [How to care for stoneware](https://example.com/care/): washing, microwave and oven use

## Optional
- [About us](https://example.com/about/): the story behind the studio

How to add it to WordPress

Option 1: upload a file

Create llms.txt on your computer, then upload it to the folder that contains wp-config.php using SFTP or your host’s file manager. WordPress serves it directly because the file exists on disk.

Option 2: generate it dynamically

If your content changes often, generate the file from your posts so it never goes stale. An SEO plugin that supports llms.txt, or a few lines of code in a small plugin, can output the file at the same address. WPresident does this, listing its departments and key guides.

Option 3: use an SEO plugin

Some SEO plugins now include an llms.txt generator. Check your plugin’s settings before adding code yourself.

Choosing what to list

  • Link to your best, most evergreen pages, not every URL.
  • Write descriptions that say what a reader will find, in plain language.
  • Include policies a shopper or reader would ask about: pricing, shipping, contact.
  • Leave out thin, duplicate and expired pages.

Test it

  1. Open yourdomain.com/llms.txt in a browser. It should load as plain text.
  2. Check the response is 200 and the type is text/plain or similar.
  3. Make sure every link works and uses your canonical, HTTPS addresses.
  4. Do not block the file in robots.txt.

Keep it current

Review the file when you launch a new section, retire a page or change a policy. A stale llms.txt pointing at redirected or deleted URLs is worse than none.

Frequently asked questions

Does llms.txt improve my Google rankings?

No. Google has said it does not use the file for search ranking. Treat it as a low-cost helper for AI tools that choose to read it.

Do I also need llms-full.txt?

It is optional. The proposal describes a longer file with the full text of key pages for tools that want it. Start with the short llms.txt.

Is llms.txt the same as robots.txt?

No. robots.txt controls what crawlers may fetch. llms.txt is a reading guide that points tools to your most useful pages.

W
Written byWPresident EditorialThe WPresident editorial team. We test products on real sites, score them with one public method and write up what holds up.

Keep reading

E-commerce

The Best WooCommerce Plugins in 2026

A WooCommerce toolbox sorted by job: subscriptions, card processing, checkout, product options, search and wishlists, with the real cost of each and a rule for a small stack.

Read more
WPresident EditorialNovember 2026

Get the Monthly Launch Report

One email a month: the best of last month's articles, new reviews and what changed in WordPress, without the noise.

No spam. Unsubscribe in one click.

Signed and sealed,
The WPresident

Press Esc to close. Use the arrow keys to move through results.