Countnest

llms.txt for WordPress: example and setup

By Countnest · Last updated

Check your site with Countnest's free llms.txt generator

No signup, no email. The checker reads only public files and gives a plain-English fix list.

Open the llms.txt generator

Example llms.txt for a WordPress business site

# Nordlys Bakery

> Family bakery in Aarhus, Denmark, baking sourdough bread and pastries daily since 2011. Open Tuesday to Sunday; online pre-orders for pickup.

Prices are in DKK and include VAT. We don't deliver outside Aarhus.

## Shop and orders
- [Pre-order for pickup](https://nordlys.example/order/): how ordering works, cut-off times, pickup slots
- [Bread and pastries](https://nordlys.example/menu/): the full menu with prices and allergens
- [Cakes for events](https://nordlys.example/cakes/): sizes, prices, 72-hour notice

## About
- [Visit us](https://nordlys.example/visit/): address, opening hours, parking
- [Our flour and suppliers](https://nordlys.example/suppliers/): organic Danish mills we buy from

## Policies
- [Allergens](https://nordlys.example/allergens/): what's in each product and cross-contact
- [Cancellations](https://nordlys.example/terms/): changing or cancelling a pre-order

## Optional
- [Blog](https://nordlys.example/blog/): recipes and seasonal news

Three ways to publish it

  1. Yoast SEO: Yoast has an llms.txt feature that generates the file and keeps it updated from your content. Turn it on under Yoast SEO > Settings > Site features and review what it lists.
  2. Upload a file: save the file as llms.txt (UTF-8, plain text) and upload it to the folder that holds wp-config.php. A real file there is served before WordPress handles the request.
  3. Another plugin: several plugins add an llms.txt route. Use only one method, or they'll fight over the same URL.

Check it

Open https://yourdomain/llms.txt in a private window. You should see the Markdown above, not your theme. Then run the AI readiness checker, which also checks your robots.txt rules for AI crawlers.

WordPress-specific tips

  • Link to pages, not to ?p=123 style URLs or tag archives.
  • If you use a caching plugin or CDN, purge it after uploading.
  • Keep the file in sync with your menu: when a page is renamed, update the link.

Questions and answers

Does WordPress create llms.txt by itself?

No. WordPress core doesn't. Yoast SEO and some other plugins can generate one, or you upload your own file.

Where do I upload llms.txt on WordPress?

To the site's root folder, the one that contains wp-config.php, so it's served at https://yourdomain/llms.txt.

Should I use Yoast's llms.txt or write my own?

Yoast's is quick and stays updated. A hand-written file lets you write better summaries and pick exactly which pages appear. Review either one.

Will llms.txt help my Google rankings?

No. Google says AI text files aren't needed for AI Overviews or AI Mode. llms.txt is for AI tools that choose to read it.

Can I also have llms-full.txt?

Yes, the proposal allows a longer file with full page text. Keep llms.txt itself short.

What if /llms.txt shows my 404 page?

The file isn't in the right folder, or a plugin route is broken. Upload the file to the root or re-save the plugin setting, then purge caches.

Sources

Facts checked on 14 November 2026.

Related tools and guides

llms.txt examples

All free Countnest tools · Plain-text summary for AI assistants

See your own numbers in minutes

30-day free trial, no card required. Then from $14 a month. Cancel anytime.

Start free for 30 days