How to Add LLMs.txt to WordPress
Adding llms.txt to WordPress is mostly a file upload: your host already gives you the server space, and a static text file lives happily at the domain root beside robots.txt. This guide walks through generating an llms.txt, uploading it with cPanel, FTP or WP-CLI, verifying it loads live, and keeping it conflict-free with SEO plugins.
Published: [FILL IN] · Last modified: [FILL IN]
What llms.txt is, and what it is not
An llms.txt is a plain Markdown file that lists the pages worth reading on your site so AI tools can find them without guessing. On WordPress you publish it as a static file at https://yourdomain.com/llms.txt.
Be clear about what it does not do: llms.txt is a community proposal, not a W3C or IETF standard, and it is not a Google ranking factor. Treat it as a low-cost, optional convenience for AI readers rather than a switch that changes your search results.
Step 1: Generate your llms.txt file
Start with the LLMs.txt Generator. It runs in your browser, needs no account, and can build the file from your website, your sitemap or a pasted list of URLs. Review the sections and links it produces and remove anything you would not want an AI assistant to read first.
If you are unsure what a good file looks like, the What is LLMs.txt? guide shows a full example with an H1 title, a blockquote summary and grouped links.
Step 2: Download the file
When the file looks right, download it and name it exactly llms.txt. The filename and location matter: tools look for it at the root as lowercase llms.txt, so avoid spaces or capital letters.
Step 3: Upload it to your WordPress root
The file belongs in your site's web root, next to wp-config.php. On most shared hosts that root is public_html; some use htdocs or www, so check with your host. There are three common ways to place it:
/public_html/llms.txt- cPanel File Manager. Open your host's control panel, browse to the site root, and use Upload to add
llms.txt. - FTP or SFTP. Connect with a client such as FileZilla and drag the file into the root directory.
- WP-CLI. If you have shell access, drop the file into place with a single command, for example
wp eval "file_put_contents( ABSPATH . 'llms.txt', file_get_contents( '/path/to/llms.txt' ) );". Adjust the source path to match where you saved the downloaded file.
Step 4: Verify it loads live
Visit https://yourdomain.com/llms.txt in a fresh browser tab. You should see the raw Markdown text, not an HTML page and not a 404. A quick way to confirm the server is serving it as text is to open your browser's network tools and check the response status and content type of that request.
If WordPress shows its own 404 page, the file is not in the root — recheck the directory you uploaded to. The LLMs.txt Validator can also fetch the live URL and flag broken links.
No special configuration is needed
That is the whole job. llms.txt is a static text file, so there is nothing to enable in WordPress and no plugin required. It does not run any code, it sets no cookies, and it changes nothing about how your pages render. If you ever want to edit it, open the file and save your changes — no dashboard step is involved.
SEO plugins: keep a single source
Some SEO plugins can also publish an llms.txt for you. Yoast SEO can write the file, and Rank Math can serve one virtually, without a physical file on disk. Either approach is fine — the problem is using two at once, because a real file and a plugin-generated response at the same URL will fight and produce an unpredictable result.
Pick one source and stick to it. If a plugin already serves /llms.txt, do not also upload a file manually; if you have uploaded a file, leave any plugin option that generates one turned off. Confirm which version wins by re-requesting the URL after any change. Plugin menus and exact option labels change between versions, so check your plugin's current settings before you rely on a specific toggle.
Optional V2 step: link pages to your llms.txt
The V2 revision of the format describes linking your pages to the file with a rel="describedby" link relation, so an agent that lands on a page can discover the index. This is optional. If you want it, add a small action to your theme.
<?php
/**
* Point pages at your llms.txt with a describedby link.
* Add this to a child theme's functions.php or a small site plugin.
*/
add_action( 'wp_head', function () {
echo '<link rel="describedby" type="text/markdown" href="https://yourdomain.com/llms.txt" />' . "\n";
} );Put that snippet in a child theme's functions.php or a small site plugin so it survives theme updates, and replace yourdomain.com with your real domain. Editing header.php directly works too, but theme updates will overwrite it. If you are also serving Markdown versions of pages, the more complete setup is covered in the V2 guide below.
When to update it
There is no schedule to follow, only a trigger: refresh the file when you add or remove important pages, such as a new product, a launch announcement or a rewritten help article. Editing a paragraph on an existing page is not a reason to touch it. A file that points at a handful of stable, high-value pages will serve AI readers better than one that tries to list everything.
Next step: the V2 setup on WordPress
Once the basic file is live, the llms.txt V2 on WordPress guide shows how to combine it with Markdown versions of your pages, so agents can read clean text instead of parsing your theme's HTML.
Check your file
Generate yours free
Learn more
- What is llms.txt?
- llms.txt V2: what changed
- Format & specification
- How to create llms.txt
- Best practices
- Examples & templates
- Do I need llms.txt?
- llms.txt for SEO
- What is llms-full.txt?
- llms.txt vs llms-full.txt
- llms.txt vs robots.txt
- llms.txt in the news
- LLMs.txt Generator
- LLMs-full.txt Generator
- LLMs.txt Validator
- llms.txt V2 Checker
- Robots.txt Generator
- Robots.txt Tester