llms.txt for WordPress: What the File Does and How to Set It Up

Titelbild: llms.txt für WordPress: Was die Datei kann und wie du sie einrichtest

llms.txt is a simple text file in the public root directory of your domain (for example boudmedia.com/llms.txt). In structured Markdown format, it summarizes what your website is about and provides curated links to your most important pages. It is meant to help AI systems understand content faster. A ranking benefit is not proven, but trying it costs little effort.

More and more people ask AI assistants questions instead of googling. That is why one question comes up more often: do I need to create an llms.txt for WordPress file? In this article we explain what the file is, what it can and cannot do, how to create it step by step, what content belongs in it and how it relates to robots.txt, sitemap and schema markup. You get a template, lists of mistakes and answers to the most important questions.

For putting it into the big picture, see SEO for AI: What changes and what stays the same. How to check whether AI systems mention your site at all is shown in Checking AI visibility.

Infographic: llms.txt for WordPress, file in the root directory, Markdown overview of the most important pages, create, test and keep up to date
Infographic: Create llms.txt for WordPress (click to enlarge)

What is llms.txt?

The proposal dates from 2024 and was popularized by Jeremy Howard (Answer.AI). The idea: similar to robots.txt for search engines, there is a file provided for language models (LLMs). It is written in Markdown and contains a short description of the website as well as a curated list of the most important pages with one line of explanation each. This means AI systems do not first have to wade through navigation, ads and scripts to grasp the core of your site.

How the file is structured

  • Title: A first-level heading with the name of your website or company.
  • Summary: A short paragraph or quote block that says in one or two sentences what you offer and for whom.
  • Sections: Second-level headings with lists of links, for example “Services”, “Guides”, “Contact”.
  • Optional section: An “Optional” area for pages that are less important and can be left out if space is short.
Illustration on llms.txt for WordPress

What llms.txt does and does not do

Honesty matters here. The standard is a proposal, not a binding norm. Major AI search providers such as OpenAI, Google, or Anthropic have so far not confirmed that their crawlers evaluate the file by default. Google has even been explicitly reserved in official statements. There is therefore no proven ranking or citation advantage. Still, the file is useful in some cases:

  • Developer tools and AI agents that specifically look for the file can use it.
  • It forces you to formulate your most important pages and key messages clearly. That is a gain in itself.
  • The effort is small and the risk is practically zero.

So plan the file as a supplement, not as the core of your strategy. Clear content, clean technology and good structure remain more important, as described in GEO optimization for WordPress describes.

llms.txt, robots.txt, sitemap and schema: The differences

  • robots.txt: Tells crawlers what they may fetch and what not. It controls access.
  • XML sitemap: Lists all pages for search engines. It is complete and machine-readable.
  • llms.txt: A curated, readable summary of the most important content for language models.
  • Schema markup: Structured data in the code of individual pages that clearly marks meaning. More on this in Schema markup in WordPress.

The files do not replace each other. robots.txt regulates access, the sitemap ensures completeness, schema conveys meaning, llms.txt provides orientation.

When llms.txt is worthwhile

  • You run a site with a lot of documentation, guides or product information.
  • You want AI tools to summarize your services correctly.
  • You already have clear content and want to take everything extra you can.

It makes less sense if your site has only a few subpages and the time is better spent on content and technology.

Step by step: Create llms.txt in WordPress

1. Select content

Decide which ten to thirty pages are really important: home page, service pages, the best guides, About us page, contact, and legal pages. Leave out archives, tag pages and duplicates.

2. Write the file

Write a summary that you would also say to a customer on the phone. Sections with links and a short description each follow. A simple template:

# Company name

> Short description in one or two sentences: What do you offer, for whom, where?

## Services
- [Create a website](https://example.com/services/website/): Custom WordPress sites for small businesses
- [Maintenance](https://example.com/services/maintenance/): Updates, backups and security

## Guides
- [WordPress caching](https://example.com/wordpress-caching/): Cache types and correct setup

## Contact
- [Contact](https://example.com/contact/): Inquiry and initial consultation

3. Upload the file

The file must be reachable at yourdomain.com/llms.txt. You have three ways:

  • Via FTP or file manager: Place the file in the public web root directory (usually public_html or httpdocs, where WordPress's index.php is located). This is the simplest and most stable solution.
  • Via plugin: Popular SEO plugins such as Yoast SEO or Rank Math as well as specialized extensions (like Website LLMs.txt) can generate the file automatically and keep it updated. Check the reviews and settings carefully before using one.
  • Via code: A small code snippet can output the file dynamically. This only makes sense if you are comfortable with PHP.

4. Test

Open the address in the browser. The file should be displayed as plain text (text/plain), with correct special characters (UTF-8 encoding) and working links. Check that no cache plugin, security rule, or redirect interferes with the request and that the HTTP status code is 200.

5. Maintain

Update the file when you add, delete or rename important pages. Outdated links do more harm than good. A fixed date every three months is enough for most sites.

A complete example file for a service company

To give you a feel for scope and tone, here is the structure for a small WordPress service company. Note: the descriptions are factual, concrete and short.

# Example Web Design Ltd

> We create and maintain WordPress websites for small and medium-sized businesses in Germany. Focus areas: web design, speed, maintenance, SEO.

## Services
- [Create a website](https://example.com/services/website/): Process, scope and prices
- [Pagespeed optimization](https://example.com/services/pagespeed/): Analysis and implementation for better load times
- [Maintenance and updates](https://example.com/services/maintenance/): Monthly support

## Guides
- [Improve LCP](https://example.com/improve-lcp/): Load time of the largest element
- [WordPress caching](https://example.com/wordpress-caching/): Types and setup

## Company
- [About us](https://example.com/about-us/): Team and way of working
- [Contact](https://example.com/contact/): Inquiry and initial consultation

## Optional
- [Legal notice](https://example.com/legal-notice/)
- [Privacy policy](https://example.com/privacy-policy/)

You can adapt this template to your company. Make sure that every description after the colon says something concrete instead of just repeating the link title—for example, write “WordPress Maintenance: Monthly updates, backups, and security checks starting at $99” instead of just “Our maintenance packages”.

How AI systems actually find content

To put the role of llms.txt in perspective, it helps to look at how AI answers come about. Part of the knowledge lies in the training of the models, which is based on large amounts of text and is completed at a certain cutoff date. Another part comes from live web search (often referred to as Retrieval-Augmented Generation, or RAG): many AI assistants and Google AI Overviews retrieve current pages when needed, summarize them, and cite sources. To do so, they draw on classic search indexes. Pages that are found well there have better chances of appearing in AI answers too. This explains why classic SEO fundamentals still count and why technical cleanliness, structure and clear content matter more than a single file.

Controlling AI crawlers: robots.txt in combination

Alongside llms.txt you should consciously decide whether AI crawlers may fetch your site. Many providers use their own user agents, which you can allow or block in robots.txt. If you want to be mentioned in AI answers, you must not block the corresponding bots. If you want to keep content out of training, you can specifically block certain training crawlers but allow retrievals for answers. This distinction is regulated differently by provider (for instance via separate bots for training and live search such as GPTBot or OAI-SearchBot) and changes regularly. Therefore, check the providers' current documentation. Be clear about what you want to achieve and keep robots.txt and llms.txt consistent. A file that promotes pages that you block at the same time is contradictory.

Technical prerequisites: Fast, reachable, clean

Even the best file is useless if the linked pages load slowly, show errors or become visible only with JavaScript. Make sure that important content is in the HTML, the pages respond quickly and a status code of 200 is returned. A lean page is fetched more easily and more often by crawlers. How to improve speed is explained in WordPress caching and Improving LCP.

Content that AI systems respond to particularly well

  • Direct answers: A question as a heading, the answer in the first two sentences.
  • Numbers and facts with a source: Concrete information is more likely to be adopted than vague statements.
  • Clear structure: Lists, tables, steps.
  • Clear brand and author information: Who is speaking, what does the site stand for?
  • Freshness: Date and regular revision.
  • Structured data: Organization, article, FAQ.

Realistically assessing costs and effort

Creating an llms.txt takes one to two hours for a typical company site if the content is clear. Maintenance costs a few minutes per quarter. Include the time for sharpening the key messages, because that is the real added value. If you need support, we integrate the file into our work on content and technology.

What belongs in llms.txt and what does not

  • Belongs in: Core services, most important guides, pricing pages and contact options, as well as clear information on location and target group.
  • Does not belong in: Internal pages, login areas, test pages, duplicate content and anything that should not be public.
  • No advertising copy: Factual descriptions are more helpful to machines than superlatives.
  • No hidden instructions: Do not try to influence AI systems with instructions. That is disreputable and can backfire.

Common misunderstandings about llms.txt

  • “With llms.txt I am visible in ChatGPT.” No. Visibility comes from content, authority and mentions on the web. The file is at best a signpost.
  • “llms.txt is the new replacement for robots.txt.” Wrong. It does not control access but gives orientation.
  • “The file has to contain everything.” On the contrary: the shorter and clearer, the better. The sitemap is responsible for completeness.
  • “I need an expensive tool for this.” A text editor is enough. Plugins are a convenience, not an obligation.
  • “Create it once, never touch it again.” Outdated links worsen the impression. Plan for maintenance.

How to fit the file into your everyday routine

It is best to link maintenance with processes you already have. If you publish a new guide, you check whether it belongs in the file. If you change services or prices, you adjust the description. At the quarterly maintenance date you check all links. That way the file stays up to date with no additional effort. If your site is looked after regularly, for example with Maintenance, this step can be integrated directly.

Typical mistakes

  • File in the wrong directory: It must be located directly under the domain, not in a subfolder.
  • Wrong encoding: Without UTF-8, special characters get destroyed.
  • Dead links: After site rebuilds, targets are missing. Check regularly.
  • File too long: Hundreds of links make the file worthless. Curate instead of copying.
  • Expecting a quick effect: There is no guarantee of more visibility.
  • Blocking AI crawlers at the same time: If your robots.txt blocks AI bots, llms.txt achieves nothing. Choose a line deliberately.

llms.txt and the strategy for AI visibility

If you want to be mentioned in AI answers, you need above all content that answers concrete questions completely, a clear brand, good structure and credible sources. This includes headings that pick up questions, FAQ sections, clean structured data and pages that load quickly. The file can help make your most important pages visible, but it replaces none of these building blocks. See FAQ schema in WordPress and Understanding PageSpeed Insights, because a slow page is crawled worse.

Practice: Check llms.txt before you publish it

Before you take the file live, a short quality check is worthwhile. Open it in a text editor and check that the main heading starts with a hash sign (#), that link titles are in square brackets, and that the URL follows immediately in round brackets. Click every link once and watch for redirects: always link the final address with https and without detours. Read the descriptions aloud. If they sound like advertising, word them more factually. Check that no page with noindex is linked, because that would be contradictory. Only then upload the file, open it in the browser and check how special characters display. Note the date of publication in your maintenance plan so that you do not forget the next check. If you use Maintenance, this item can become a fixed part of the quarterly routine check.

Checklist

  • Selected the most important pages (ten to thirty)?
  • Formulated the summary clearly and factually?
  • Saved the file in Markdown with UTF-8?
  • Reachable at /llms.txt in the root directory?
  • Checked all links?
  • Do robots.txt and llms.txt not contradict each other?
  • Set a maintenance date?

If you would like support

We help you set up the file cleanly and embed it in an overall strategy, from clear content through technology to speed. With the Pagespeed Boost at $149 you ensure fast pages, and with Maintenance at $99 per month everything stays up to date. You will find more on our offering around visibility at Visibility in search and AI.

llms.txt on multilingual websites

Many company websites exist in several languages, and boudmedia also works in German and English. For the llms.txt file this raises the question whether a single file is enough or whether each language needs its own. The file always sits in the root directory of the domain, so there is only one address per domain.

The simplest solution is one file that separates both languages cleanly. You create two sections, one per language, and list the most important pages with a short description in each. It is important that every description is written in the language of the linked page. That way AI systems do not mix up the language versions and return the matching target page for both English and German queries.

What to watch out for with translation plugins

Translation plugins such as TranslatePress, WPML, or Polylang often create language versions under separate directories, for example with the /en/ prefix (if you use a separate domain or subdomain per language, each language version has its own llms.txt). Always enter the final, reachable addresses in the file and check each one in the browser. An address that points to a redirect or an error page does you no good.

Also update the file whenever you translate new core pages or adjust the URL structure of a language so that no language version points to a dead link.

Conclusion: Small file, small expectation, clear benefit

An llms.txt is quickly created, costs nothing and forces you to name your most important content clearly. A proven effect on rankings or AI citations does not exist, so you should see it as a supplement. The real work lies in good content, clean technology and a clear brand. Anyone who takes that to heart is well positioned for both search and AI.

Frequently asked questions about llms.txt

What is llms.txt?

A text file in Markdown format in the root directory of your domain that summarizes your website and links the most important pages. It is aimed at language models and AI agents.

Does llms.txt bring better rankings or more AI citations?

That is not proven. Major providers have so far not confirmed binding evaluation. The effort is small, but you should not expect miracles.

Do I need llms.txt if I already have a sitemap?

The two have different tasks. The sitemap is a complete list for search engines; llms.txt is a curated selection with explanation for AI systems. The sitemap is more important; llms.txt is a voluntary supplement.

Where must the file be located?

Directly in the root directory of the domain, so that it can be reached at yourdomain.com/llms.txt.

Can I create llms.txt with a plugin?

Yes, some plugins create the file automatically. Check what they include and make sure no private or irrelevant pages show up.

How often do I have to update the file?

Whenever important pages change, but at least every three months. Outdated links should not stay in the file.

Is there also llms-full.txt?

The proposal optionally provides for an extended variant that contains the full text of important pages. It is intended for very extensive documentation and is rarely needed for normal company sites.

Can llms.txt do harm?

Hardly. But if the file is faulty, contains wrong links or exposes content that should not be public, it can cause problems. Check it carefully before publishing.

Does the file always have to be called llms.txt?

Yes, the proposal provides for this name in the root directory so that tools can find it automatically.

Should I also include blog posts?

Include the most important and best ones, not all. A curated selection is more useful than a complete list, for which the sitemap exists.

How do I check whether anyone uses the file?

A look at your host's server logs shows whether crawlers fetch the /llms.txt address. Based on the user agents, you can also see exactly which AI bots such as GPTBot, ClaudeBot, or PerplexityBot visit your site. More on checking your visibility in Checking AI visibility.

Amine Boudounite

About the author

Amine Boudounite

Amin is the founder of Boudmedia and builds WordPress websites, online shops and business sites. In his guides he explains technology, loading speed and visibility so that you can apply them without any prior knowledge.

Contents
Help with your WordPress site?

We take a free look and tell you honestly what is needed and what it costs.

Share post

You might also be interested in

WordPress Backend Slow? How to Speed Up the Dashboard

Wenn das WordPress-Dashboard träge ist: Ursachen und Maßnahmen im Überblick.

Finding and Fixing a WordPress Plugin Conflict

So findest du den Plugin-Konflikt in WordPress und löst ihn ohne Datenverlust.

Google Shopping with WooCommerce: How to Make Your Feed Error-Free

Wie ein sauberer Produktfeed für Google Shopping aussieht und welche Fehler du in WooCommerce vermeiden kannst.

Problems with your WordPress site? We fix them at a fixed price.

  • Free check of your site
  • Honest assessment of what is needed
  • Fixed price before we start
  • Reply within 24 hours on business days
Scroll to Top