GeoCheckTool
All articles

This article is shown in English — a native-language version is coming soon.

How to Add llms.txt in WordPress (2026): 3 Proven Methods

Add an llms.txt file to WordPress in minutes. Compare the SEO-plugin toggle, a dedicated llms.txt plugin, and manual FTP upload — plus how to verify it works.

How to Add llms.txt in WordPress (2026): 3 Proven Methods

The fastest way to add an llms.txt file to WordPress is to enable the built-in llms.txt toggle in your SEO plugin (Yoast SEO already ships one). If your plugin doesn't have that option yet, install a dedicated llms.txt plugin, or upload the file manually to your site root over FTP. All three put a readable file at https://yourdomain.com/llms.txt, which is exactly where AI crawlers look for it.

This guide covers all three methods, when to use each, and how to confirm the file actually went live.

What llms.txt is (and where it lives)

llms.txt is an emerging plain-text/Markdown standard that gives AI models a clean summary of your site: what it is, your key pages, and how you want to be referenced. It is similar in spirit to robots.txt, but instead of allow/disallow rules for search crawlers, it hands AI engines curated context.

Two rules never change, no matter which method you pick:

  1. The file must be named exactly llms.txt (lowercase).
  2. It must be served from your domain root — https://yourdomain.com/llms.txt — not a subfolder.

On WordPress that root-placement requirement is the catch. WordPress routes URLs through PHP, so you can't just drop a file in a folder and expect the right URL to resolve. That's why a plugin (which registers the route for you) is usually easier than fighting the file system by hand.

Method comparison

Method Effort Control over content Auto-updates Best for
SEO plugin toggle (Yoast, etc.) Lowest Medium (curated, some page selection) Yes Most sites already using an SEO plugin
Dedicated llms.txt plugin Low Medium-high (page/post-type rules) Yes Sites whose SEO plugin lacks the feature
Manual upload via FTP/SFTP Highest Full (you write every line) No Static brand summaries, full control

Method 1: Enable the llms.txt toggle in your SEO plugin

If you already run an SEO plugin, check it first — this is the lowest-effort path and the file stays in sync with your content automatically.

Yoast SEO added native llms.txt support for both free and premium users. To turn it on, go to your WordPress dashboard, open Yoast SEO, find the llms.txt option in the plugin's feature/settings area, and switch the toggle on. Once enabled, Yoast generates the file for you and lets you customize which pages it includes (for example, your homepage, cornerstone content, and key posts). Pages you mark as noindex are kept out automatically.

Rank Math, All in One SEO (AIOSEO), and SEOPress are the other major suites. Feature availability moves quickly, so check your installed version's settings for an llms.txt or "AI" option before assuming you need another tool. If your suite doesn't expose it yet, use Method 2 — several dedicated plugins are built to read these suites' settings and respect their noindex/nofollow rules.

The trade-off: the toggle approach is convenient and self-updating, but you get the plugin's template. If you want a hand-written brand narrative, jump to Method 3.

Method 2: Use a dedicated llms.txt plugin

If your SEO plugin has no llms.txt switch, a purpose-built plugin is the next-easiest route. Plugins such as Website LLMs.txt (available on WordPress.org) generate and serve the file for you, and integrate with the major SEO suites — they read your Yoast SEO, Rank Math, SEOPress, or AIOSEO settings so anything marked noindex or nofollow is excluded from the generated file.

The general install flow is the standard WordPress one:

  1. In your dashboard, go to Plugins → Add New.
  2. Search for an llms.txt generator plugin and confirm it's actively maintained and compatible with your WordPress version.
  3. Click Install Now, then Activate.
  4. Open the plugin's settings page and choose which content types (pages, posts, products) to include.
  5. Save. The plugin registers the /llms.txt route and builds the file.

Because these plugins regenerate the file as your content changes, they're a good fit for sites that publish often. Always vet a plugin's last-updated date and review count before installing — an abandoned plugin is a liability.

Method 3: Upload llms.txt manually via FTP/SFTP

If you want total control over every line — or you'd rather not add a plugin — write the file yourself and place it at the site root.

  1. Write the file. In a plain-text editor, create a file named llms.txt. Start with an H1 title and a one-line site summary, then list your most important pages as Markdown links with short descriptions. Keep it factual and concise.
  2. Connect to your server. Use an FTP/SFTP client (or your host's file manager in cPanel/Plesk). Connect with the credentials from your hosting account.
  3. Find the web root. This is the directory that serves your domain — commonly public_html, www, or htdocs. It's the same folder that contains wp-config.php and wp-content.
  4. Upload llms.txt into that root directory, alongside robots.txt.
  5. Test the URL (see the next section).

One WordPress-specific gotcha: because permalinks are handled by PHP, a static file in the root sometimes gets intercepted by WordPress's rewrite rules and returns a 404. If that happens, the cleanest fix is to use Method 1 or 2 instead, since those register the route properly. Manual upload is simplest on hosts that serve static files before handing the request to WordPress.

How to verify it works

Never assume the file is live just because you uploaded or toggled it. Verify all three of these:

  • Visit the URL directly. Open https://yourdomain.com/llms.txt in a browser. You should see your plain-text content, not a 404 or a redirect to your homepage.
  • Check the response with a request. From a terminal, curl -I https://yourdomain.com/llms.txt should return 200 OK. A 301/302 or 404 means the route isn't resolving — recheck the file name, location, and any caching layer (clear your WordPress and CDN cache).
  • Confirm it's not blocked. Make sure your robots.txt or a security plugin isn't disallowing AI crawlers like GPTBot or Google-Extended from reaching the path. The file is only useful if crawlers can actually fetch it.

If you use a caching or CDN layer (very common on WordPress hosts), purge the cache after any change or you may keep seeing the old version — or a 404 that's already been fixed at the origin.

After it's live: measure whether it moves the needle

Adding llms.txt is a low-cost, sensible step — but it is not a guarantee of AI visibility, and adoption of the standard across AI engines is still uneven. The only way to know if it helped is to measure before and after. Take a baseline reading of how AI engines describe your brand today, publish your llms.txt, wait, then re-check. Tools like GeoCheckTool let you see whether ChatGPT, Perplexity, Gemini, and Google AI Overviews actually cite and describe your brand accurately, so you can compare the before-and-after rather than guessing.

For a deeper walkthrough of what to put inside the file itself — the structure, the sections, and the wording AI models parse best — see the llms.txt setup guide.

FAQ

Where exactly does llms.txt go on a WordPress site? At the domain root, served as https://yourdomain.com/llms.txt. On WordPress this URL is best produced by a plugin that registers the route, because static files in the root can be intercepted by WordPress's permalink rewriting.

Do I need a plugin, or can I do it manually? Either works. A plugin (your SEO suite's toggle or a dedicated llms.txt plugin) is easier and keeps the file updated automatically. Manual FTP/SFTP upload gives you full control over the wording but won't auto-update and can hit WordPress rewrite issues.

Will llms.txt conflict with my robots.txt or sitemap? No. They serve different purposes and coexist: robots.txt controls crawler access, sitemap.xml lists indexable URLs, and llms.txt hands AI models a curated summary. Keep all three; just make sure robots.txt isn't blocking the /llms.txt path for AI crawlers.

Does adding llms.txt guarantee I'll show up in ChatGPT or Gemini? No. It's a helpful signal, not a ranking lever. AI-engine support for the standard is still growing, so treat it as one piece of an AI visibility strategy and verify real-world impact by checking your brand's AI citations before and after.

Try GeoCheckTool Free

Find out if ChatGPT, Perplexity, Gemini, and Google AI can access, understand, cite, and recommend your website.

Related articles