SEO & AI search · Guide
How to Add llms.txt to WordPress (And Whether It Helps)
Short answer
Add llms.txt to WordPress by turning on the Yoast SEO llms.txt feature, installing a dedicated llms.txt plugin, or uploading a plain Markdown file named llms.txt to your site root. The file gives AI tools a short index of your pages, but it is a proposal, not a Google ranking factor.
Key takeaways
- An llms.txt file is a plain Markdown file at your site root that lists your site and links to your main pages.
- No major search engine has announced that it seeks out llms.txt files, so it is not a Google ranking factor.
- Yoast SEO can create the file in a few clicks and updates it weekly by a scheduled action.
- A dedicated plugin can also create llms.txt and llms-full.txt, with full page text in the second file.
- The only required part of the file is an H1 with your site or project name.
- Check the file by opening yourdomain.com/llms.txt in a browser and reading the links.
What is llms.txt in WordPress?
An llms.txt file is a plain Markdown file at your site root that lists your site name, a short summary, and links to your main pages for AI tools.
The proposal at llmstxt.org describes it as a file for language models, not a new rule for search engines. It sits at /llms.txt, or at a subpath such as /docs/llms.txt, and it covers the pages under that path.
A WordPress site does not create this file by itself. You add it with a plugin such as Yoast SEO, a dedicated llms.txt plugin, or a file you upload by hand.
If you want the short definition first, read What Is llms.txt? A Plain Explanation.
Does llms.txt help your WordPress site?
Yes, it can help AI tools find your pages faster, but it does not raise your Google rankings.
The Project LLMs.txt page on WordPress.org states that no major search engine or LLM provider has officially announced that they seek out llms.txt files.
Google Search Central says Google Search does not use llms.txt files, so adding one will neither harm nor help your visibility in Google Search.
That leaves a narrow, real use. The file helps when an AI tool is given your site and needs a short map of it, such as a coding assistant or a chat tool that reads pages on demand.
It helps most for sites with clear docs, guides, or product pages. It helps least for a small blog that already has a clear menu and a sitemap.
If you want to track AI mentions later, read How to Check If ChatGPT Cites Your Site.
What do you need before you start?
You need a WordPress site you can log in to, a way to install a plugin or upload a file, and a short list of your main pages.
Plan on about 5 minutes for the plugin route and about 30 minutes if you write the file by hand. Pick one method below and finish it before you try another.
- Admin access to your WordPress dashboard.
- Yoast SEO installed, if you use the Yoast route, or a free slot to install a dedicated plugin.
- SFTP or hosting file manager access, if you use the manual route.
- A list of 5 to 10 pages that best describe what you do, such as your home page, about page, main services, and top guides.
- A plain text editor, such as Notepad or TextEdit, for the manual file.
Do not put private pages in the list. The file is public, so only link to pages any visitor can read.
How do you add llms.txt with Yoast SEO?
Turn on the llms.txt feature in Yoast SEO, save the settings, and Yoast creates the file at your site root.
Yoast lists this feature under its AI tools. The Yoast help page, updated 20 April 2026, gives the exact menu path below, and the steps take a few minutes.
- In your WordPress dashboard, go to “Yoast SEO”.
- Go to “Settings”.
- Go to “Site Features”.
- Under “AI tools”, go to “LLMS.txt”.
- Toggle the switch to on. The toggle shows a purple checkmark when it is on.
- Click “Save changes”.
If you already use Yoast, start here. For the full Yoast setup, read How to Set Up Yoast SEO.
How do you pick the pages Yoast lists?
Yoast picks the pages for you by default, and you can switch to a manual list when you want control.
The Yoast developer spec says Yoast includes the 5 latest updated posts, pages, or custom post types. Posts count only if they were published in the last 12 months.
The same spec says Yoast includes the 5 categories or tags with the most content pieces attached to them. Cornerstone content gets priority in the list.
To pick pages by hand, go to “Yoast SEO”, then “Settings”, then “Site features”, then “LLMS.txt”, then “Customize llms.txt file”. Select “Manual page selection”, choose and add the pages you want, then click “Save changes”.
What if Yoast cannot create the file?
Yoast will not overwrite a file that already exists, so remove an old llms.txt file from your server first.
The Yoast help page at Yoast says the feature is not available for multisite. It also says to check your server file permissions if you see the message that the file could not be auto-generated.
How do you add llms.txt with a dedicated plugin?
Install Project LLMs.txt from WordPress.org, open its settings, and click Generate Now to create llms.txt and llms-full.txt.
This route suits sites that do not use Yoast, or sites that want a full-text file too. The plugin page on WordPress.org lists the exact install steps below.
- Go to “Plugins”, then “Add New”.
- Search for “Project LLMs.txt”.
- Click “Install Now”, then “Activate”.
- Go to “Project LLMs.txt” in your admin sidebar.
- Review your site info and content types under “Settings”.
- Click “Generate Now” on the Generate tab.
Check the requirements first. The plugin needs WordPress 6.4 or higher and PHP 8.1 or higher, and WooCommerce 7.0 or higher is optional for product support.
| Method | Best for | File it creates | How it updates |
|---|---|---|---|
| Yoast SEO | Sites that already use Yoast | llms.txt | Weekly, by a scheduled action |
| Project LLMs.txt | Sites without Yoast, or WooCommerce sites | llms.txt and llms-full.txt | Manual Generate Now in the free version |
| Manual file | Full control, no new plugin | llms.txt | You edit and re-upload it |
The plugin writes the files to your WordPress root, in the same folder as wp-config.php. They then load at yourdomain.com/llms.txt and yourdomain.com/llms-full.txt.
If your root folder is not writable, switch to Live Endpoint mode in “Settings”, then “File Serving Mode”. That mode serves the files through WordPress rewrite rules with no file writes.
The plugin also respects noindex settings. Pages marked noindex or nofollow in Yoast, Rank Math, SEOPress, AIOSEO, or Slim SEO are left out of the public files by itself.
How do you add llms.txt by hand without a plugin?
Create a plain text file named llms.txt, write it in the format below, and upload it to your site root.
Use SFTP or your host file manager for the upload. The root is the folder that holds wp-config.php, and the file must be named exactly llms.txt, in lower case.
- Open a plain text editor and create a new file.
- Type your H1 title on the first line, such as
# Your Site Name. - Add a blockquote summary on the next lines, such as
> Your site helps people do X with short guides.. - Add an H2 section, such as
## Guides. - Add one list item per page, in this form: a link title in square brackets, the page URL in round brackets, a colon, then one short line about the page.
- Save the file as
llms.txt. - Upload it to your site root, in the same folder as
wp-config.php. - Open
https://example.com/llms.txtin a browser, with your own domain in place of example.com.
The spec at llmstxt.org says the H1 is the only required section. The blockquote gives a short summary, and each H2 section holds a file list of links.
Keep the file short. The spec says the file itself stays small enough to fit in context, while detail lives behind the links and is fetched only when needed.
Use the “Optional” section for secondary links. The spec says that section, by convention, holds links an agent can skip when a shorter context is needed.
What should you put in your llms.txt file?
Put your site name, a one-line summary, and links to your most useful pages, with one short note per link.
Start with the pages a new visitor needs first. A home page, an about page, and your main guides or products cover most sites.
- Your home page, with a note on what the site does.
- Your about page, with a note on who the site is for.
- Your 5 to 10 most useful guides or product pages.
- Your contact page, if you take enquiries from the public.
- Your main category pages, if they group your best content.
Do not list every page. A sitemap already lists all pages, and the spec says a sitemap is not a substitute for llms.txt because it lists too much for a short context.
Write each link note in plain words. Say what the page covers, not what you hope the reader will think of it.
Link to pages that load for any visitor. Do not link to draft pages, login pages, cart pages, or checkout pages.
How do you check that llms.txt works?
Open yourdomain.com/llms.txt in a browser and confirm the file loads, the title is right, and every link opens.
Use your real domain in place of yourdomain.com. If the page shows a 404, the file is not in the root, the name is wrong, or a redirect is in the way.
- Check the H1 matches your site name.
- Click each link and confirm it opens the right page.
- Check that no link points to a draft, a login page, or a page you meant to exclude.
- Check the file in a private browser window, so a logged-in session does not hide a permission problem.
- Ask an AI tool a question about your site, with only your llms.txt as the starting point, as the spec suggests for a simple check.
For crawler access, the rules are separate. llms.txt does not block or allow crawlers, so check robots.txt and your SEO plugin for that, and read Should You Block GPTBot? if you want to control AI crawlers.
If a link is wrong, fix the source page list in the plugin, or edit the manual file and upload it again. Then reload the llms.txt URL and click the link again.
How often should you update llms.txt?
Update the file when you add, remove, or rename a main page, and at least each time you publish a new top guide.
Yoast updates its file weekly by a scheduled action, according to the Yoast developer spec. That covers routine changes, but a manual page list still needs your review after a big site change.
Project LLMs.txt keeps the 5 most recent backups before each regeneration, according to its WordPress.org page. That means a bad generation does not cost you a good file.
In the free version of Project LLMs.txt, regenerate by hand after large content updates. The paid version rebuilds files in the background, usually within about a minute of saving content, with a 5-minute delay for bulk edits.
For a manual file, set a monthly reminder. Open the file, remove dead links, add new top pages, and re-upload it.
If you change your site focus, rewrite the summary first. A stale summary sends AI tools to the wrong pages, even if every link still loads.
What mistakes should you avoid?
Avoid treating llms.txt as a ranking tool, listing every page, or linking to pages that should stay private.
- Do not expect Google rankings from the file. Google Search ignores it, so keep your normal SEO work separate. For AI search basics, read How to Use AI for WordPress SEO.
- Do not paste your whole site into the file. Keep the index short and let the links carry the detail.
- Do not link to noindex pages. If a page is out of search, keep it out of llms.txt too.
- Do not use a different file name, such as
LLMS.txtorllms-text.txt. The name isllms.txt, in lower case. - Do not put the file in
/wp-content/or an uploads folder. It belongs at the root, unless you use a subpath file for one section only. - Do not forget the H1. The spec says it is the only required section, so a file without it does not follow the format.
- Do not leave dead links in the file. Check the links each time you update it, and remove pages you deleted.
Frequently asked questions
Does llms.txt help Google rankings?
No. Google Search ignores llms.txt files, so adding one will neither harm nor help your visibility or rankings in Google Search. Keep it for AI tools that read it, and keep your normal SEO work, such as clear content, internal links, and crawlable pages, for Google.
Where does the llms.txt file go on WordPress?
It goes at your site root, in the same folder as wp-config.php, so it loads at yourdomain.com/llms.txt. A plugin can also serve it through WordPress rewrite rules if your root folder is not writable. Do not put it in wp-content or an uploads folder.
Can I use Yoast SEO and a dedicated llms.txt plugin at the same time?
No, do not run two generators at once. Pick one method and stick to it, because two tools can overwrite each other or serve different files. Yoast will also refuse to overwrite a file that already exists, so remove the old file before you switch methods.
What is llms-full.txt?
It is a longer file that holds the same index plus the full Markdown body of every page inlined after it, so an AI tool gets the complete text in one fetch. Project LLMs.txt creates it next to llms.txt. Yoast SEO does not create llms-full.txt, so use a dedicated plugin if you want that file.
Do I need llms.txt if I already have a sitemap and robots.txt?
No, you do not need it. A sitemap lists pages for search engines, and robots.txt controls crawler access, while llms.txt gives AI tools a short, curated index. It is an extra file for AI tools, not a replacement for either of the other two files.
How long does it take to add llms.txt to WordPress?
The plugin route takes about 5 minutes, including install, settings, and a first check of the live URL. The manual route takes about 30 minutes, because you write the file, upload it, and click every link to check it. After that, updates take a few minutes each time you change a main page.
Sources
- The /llms.txt file, v2 llmstxt.org
- Project LLMs.txt – AI SEO & llms.txt for WordPress & WooCommerce WordPress.org
- How to enable llms.txt with Yoast SEO Yoast
- Yoast SEO: llms.txt - functional specification Yoast Developer Portal
- Google's Guide to Optimizing for Generative AI Features on Google Search Google Search Central
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
