{"id":3491,"date":"2026-11-03T03:23:47","date_gmt":"2026-11-03T03:23:47","guid":{"rendered":"https:\/\/maxaeo.ai\/blog\/wordpress-llms-txt\/"},"modified":"2026-11-18T18:23:41","modified_gmt":"2026-11-18T18:23:41","slug":"wordpress-llms-txt","status":"publish","type":"post","link":"https:\/\/maxaeo.ai\/blog\/wordpress-llms-txt\/","title":{"rendered":"WordPress llms.txt: How to Create, Add, and Validate It"},"content":{"rendered":"<p><em>By maxaeo.ai \uff5c Published 2026-11-03 \uff5c Updated 2026-11-03<\/em><\/p>\n<p><strong>WordPress llms.txt<\/strong> is a plain-text Markdown file published at the root of a website, usually at <code>https:\/\/example.com\/llms.txt<\/code>. It gives AI systems a concise map of important pages, but it does not guarantee rankings, citations, or visibility in ChatGPT, Gemini, Google AI Overviews, or other answer engines.<\/p>\n<figure class=\"wp-block-image size-large\" style=\"margin:1.5em 0;\"><img decoding=\"async\" src=\"https:\/\/maxaeo.ai\/blog\/wp-content\/uploads\/2026\/11\/backend-9335-1.jpg\" alt=\"WordPress llms-txt file structure shown in a website root directory\" style=\"max-width:100%;height:auto;\"><\/figure>\n<p>The practical goal is simple: make your most important public information easier to discover and interpret. The file is an emerging convention, not a replacement for technical SEO, structured data, crawlability, or accurate on-page content.<\/p>\n<h2>What is llms.txt in WordPress?<\/h2>\n<p>An <code>llms.txt<\/code> file is a curated Markdown document that identifies a website, summarizes its purpose, and links to selected pages. On WordPress, it should resolve from the domain root rather than from a blog post, theme folder, or <code>\/wp-content\/<\/code> directory. The structure of that document, with a complete example, is covered in our <a href=\"https:\/\/maxaeo.ai\/blog\/llms-txt-guide\/\">llms.txt guide<\/a>.<\/p>\n<p>A useful file normally includes:<\/p>\n<ul>\n<li>A site name and short description<\/li>\n<li>Product, service, or category pages<\/li>\n<li>Documentation or support pages<\/li>\n<li>About, contact, and policy pages where relevant<\/li>\n<li>A small number of authoritative articles<\/li>\n<li>Optional links to an <code>llms-full.txt<\/code> file, if one is maintained<\/li>\n<\/ul>\n<p>The important distinction is <strong>curation<\/strong>. An automatically generated file that lists every tag, author archive, thin post, and duplicate URL may be less useful than a short file containing 20 carefully selected pages.<\/p>\n<p>WordPress.com describes <code>llms.txt<\/code> as a Markdown-formatted file placed at the root of a domain and recommends prioritizing high-value pages rather than publishing an unfiltered link dump. (<a href=\"https:\/\/wordpress.com\/support\/add-llms-txt-to-your-site\/\" target=\"_blank\" rel=\"noopener\">wordpress.com<\/a>)<\/p>\n<h2>Does llms.txt improve AI search visibility?<\/h2>\n<p>Publishing the file may improve content discoverability for systems that choose to read it, but there is no universal guarantee that an AI engine will fetch or use it. Major AI providers have not consistently documented <code>llms.txt<\/code> as a required ranking or citation signal. (<a href=\"https:\/\/wordpress.org\/plugins\/project-llmstxt\/\" target=\"_blank\" rel=\"noopener\">wordpress.org<\/a>)<\/p>\n<p>That makes <code>llms.txt<\/code> best understood as a <strong>low-cost content discovery layer<\/strong>. It can help communicate:<\/p>\n<ol>\n<li>What the site is about<\/li>\n<li>Which URLs represent the business accurately<\/li>\n<li>Which pages explain products, services, or evidence<\/li>\n<li>Where an AI agent should begin reading<\/li>\n<\/ol>\n<p>It should support, not replace:<\/p>\n<ul>\n<li>Search-accessible HTML<\/li>\n<li>Clear internal links<\/li>\n<li>Descriptive page titles<\/li>\n<li>Schema markup where appropriate<\/li>\n<li>Consistent brand facts<\/li>\n<li>Fast, crawlable pages<\/li>\n<li>A well-maintained XML sitemap<\/li>\n<\/ul>\n<p>For SaaS websites, the strongest value is often not adding more URLs. It is making the correct positioning, documentation, comparison pages, and pricing information easier to identify. To review those signals across the whole site, work through a <a href=\"https:\/\/maxaeo.ai\/blog\/geo-readiness-checklist\/\">GEO readiness checklist<\/a>.<\/p>\n<h2>How to create a WordPress llms.txt file<\/h2>\n<p>Use this basic structure as a starting point:<\/p>\n<pre><code class=\"language-markdown\"># Example SaaS\n\n&gt; Example SaaS helps growing teams manage customer support from one workspace.\n\n## Product\n\n- [Product overview](https:\/\/example.com\/product): Core features and use cases\n- [Pricing](https:\/\/example.com\/pricing): Plans and billing information\n- [Integrations](https:\/\/example.com\/integrations): Supported tools and connections\n\n## Resources\n\n- [Getting started](https:\/\/example.com\/docs\/getting-started): Initial setup guide\n- [Security](https:\/\/example.com\/security): Security and compliance information\n- [Customer support guide](https:\/\/example.com\/support): Help documentation\n\n## Company\n\n- [About](https:\/\/example.com\/about): Company background and mission\n- [Contact](https:\/\/example.com\/contact): Contact information\n<\/code><\/pre>\n<p>Use <strong>absolute HTTPS URLs<\/strong> and short descriptions that explain why each page matters. Avoid promotional claims that are not supported on the linked page.<\/p>\n<p>A practical selection rule is to include pages that answer one of these questions:<\/p>\n<ul>\n<li>What does the company offer?<\/li>\n<li>Who is it for?<\/li>\n<li>How does it work?<\/li>\n<li>What does it cost?<\/li>\n<li>Why should a buyer trust it?<\/li>\n<li>How can a user verify or implement it?<\/li>\n<\/ul>\n<p>For a deeper validation workflow, see this guide to a <a href=\"https:\/\/maxaeo.ai\/blog\/llms-txt-validator\/\">llms.txt validator and syntax testing workflow<\/a>.<\/p>\n<h2>Three ways to add llms.txt to WordPress<\/h2>\n<h3>Method 1: Use an SEO plugin<\/h3>\n<p>Several WordPress SEO plugins can generate or serve an <code>llms.txt<\/code> file. For example, Yoast documents a workflow under its settings for selecting pages included in the file. (<a href=\"https:\/\/yoast.com\/help\/enable-llmstxt\/\" target=\"_blank\" rel=\"noopener\">yoast.com<\/a>)<\/p>\n<p>The general process is:<\/p>\n<ol>\n<li>Install or update a compatible SEO plugin.<\/li>\n<li>Open its AI, sitemap, or content settings.<\/li>\n<li>Enable the <code>llms.txt<\/code> feature.<\/li>\n<li>Select the post types or pages to include.<\/li>\n<li>Review the generated output.<\/li>\n<li>Visit <code>\/llms.txt<\/code> in an incognito browser window.<\/li>\n<\/ol>\n<p>Plugin-based generation is convenient, but do not assume the default output is strategic. Check whether it includes outdated posts, author archives, private content, taxonomy pages, or URLs with weak descriptions.<\/p>\n<h3>Method 2: Upload the file with SFTP or a hosting file manager<\/h3>\n<p>For a manually controlled file:<\/p>\n<ol>\n<li>Create a plain-text file named exactly <code>llms.txt<\/code>.<\/li>\n<li>Open your hosting file manager or SFTP client.<\/li>\n<li>Navigate to the WordPress root directory, often the folder containing <code>wp-config.php<\/code>.<\/li>\n<li>Upload the file beside the main WordPress files.<\/li>\n<li>Open <code>https:\/\/yourdomain.com\/llms.txt<\/code>.<\/li>\n<li>Purge your WordPress, CDN, and server caches if the old response still appears.<\/li>\n<\/ol>\n<p>The file should be available at the bare domain path. Uploading it to <code>\/wp-content\/uploads\/<\/code> does not create the standard root URL.<\/p>\n<h3>Method 3: Serve a virtual file through a plugin<\/h3>\n<p>Some dedicated plugins generate the response dynamically instead of storing a physical file. This can work well when hosting restrictions prevent root-level uploads.<\/p>\n<p>The trade-off is maintenance and dependency: if the plugin is disabled, misconfigured, or conflicts with another SEO plugin, the public <code>\/llms.txt<\/code> response may disappear or change. Test the live URL after plugin updates.<\/p>\n<h2>WordPress llms.txt settings in Yoast SEO and Rank Math<\/h2>\n<p>If your WordPress site already runs Yoast SEO or Rank Math, start with the plugin&#8217;s own llms.txt setting before you upload a file. Both plugins document where the switch lives and what it controls.<\/p>\n<table>\n<thead>\n<tr>\n<th>Setting<\/th>\n<th>Yoast SEO<\/th>\n<th>Rank Math<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Where to turn it on<\/td>\n<td>Yoast SEO &gt; Settings &gt; Site Features, then LLMS.txt under AI tools. Toggle it on and save.<\/td>\n<td>Rank Math SEO &gt; Dashboard, then turn on the LLMS Txt module<\/td>\n<\/tr>\n<tr>\n<td>Where to edit it<\/td>\n<td>Customize llms.txt file, then Manual page selection<\/td>\n<td>Rank Math SEO &gt; General Settings &gt; Edit llms.txt<\/td>\n<\/tr>\n<tr>\n<td>What you can choose<\/td>\n<td>The pages you add by hand<\/td>\n<td>Post types, taxonomies, a posts and terms limit, and additional custom content<\/td>\n<\/tr>\n<tr>\n<td>Documented limits<\/td>\n<td>Not available for multisite<\/td>\n<td>Posts set to noindex are excluded<\/td>\n<\/tr>\n<tr>\n<td>Message to know<\/td>\n<td>&quot;Your llms.txt file couldn&#8217;t be auto-generated&quot; means checking the web server&#8217;s filesystem permissions<\/td>\n<td>The file stays empty until you configure it<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After saving, open the public \/llms.txt in a private window and compare it with your selection. In Rank Math, if a page you expected is missing, check whether it is set to noindex, because the module leaves those out. In Yoast, manual page selection is the way to keep the file short instead of relying on whatever the default includes.<\/p>\n<h2>How to validate WordPress llms.txt<\/h2>\n<p>Do not stop after seeing a success message in WordPress. Validate the public response that an external crawler would receive.<\/p>\n<h3>Browser test<\/h3>\n<p>Open:<\/p>\n<pre><code class=\"language-text\">https:\/\/yourdomain.com\/llms.txt\n<\/code><\/pre>\n<p>Check that:<\/p>\n<ul>\n<li>The response returns HTTP 200<\/li>\n<li>The filename is lowercase<\/li>\n<li>The content is readable without logging in<\/li>\n<li>Links use the correct canonical domain<\/li>\n<li>No staging, preview, or localhost URLs appear<\/li>\n<li>Important pages are not blocked or redirected unexpectedly<\/li>\n<\/ul>\n<h3>Header test<\/h3>\n<p>A command-line check can reveal redirects and content-type problems:<\/p>\n<pre><code class=\"language-bash\">curl -I https:\/\/yourdomain.com\/llms.txt\n<\/code><\/pre>\n<p>A redirect may be acceptable in some setups, but a direct <code>200 OK<\/code> response with a text-oriented content type is easier to diagnose and maintain.<\/p>\n<h3>Content test<\/h3>\n<p>Review the file against the live website:<\/p>\n<ul>\n<li>Does the description match the homepage?<\/li>\n<li>Are product names and claims current?<\/li>\n<li>Do pricing and documentation links work?<\/li>\n<li>Are discontinued pages removed?<\/li>\n<li>Are important pages missing?<\/li>\n<li>Are there duplicate or low-value URLs?<\/li>\n<\/ul>\n<p>The most useful original quality check is a <strong>source-of-truth comparison<\/strong>: select the ten facts an AI assistant must get right, then verify that each fact appears consistently in the linked page, page title, structured data, and <code>llms.txt<\/code> description. This catches contradictions that a syntax validator cannot detect.<\/p>\n<figure class=\"wp-block-image size-large\" style=\"margin:1.5em 0;\"><img decoding=\"async\" src=\"https:\/\/maxaeo.ai\/blog\/wp-content\/uploads\/2026\/11\/backend-9335-2.jpg\" alt=\"WordPress llms-txt validation checklist with URL, status, links, and content checks\" style=\"max-width:100%;height:auto;\"><\/figure>\n<h2>Which source is answering at \/llms.txt?<\/h2>\n<p>A WordPress site can end up with more than one thing that produces \/llms.txt: a physical file uploaded by SFTP, an SEO plugin module, a dedicated llms.txt plugin, or a rule at the host or CDN. When the public file does not match what you configured, work out which source is answering before you edit anything.<\/p>\n<ol>\n<li><strong>List every possible source.<\/strong> Check the root folder (the one with wp-config.php) for an llms.txt file, then check each active SEO or llms.txt plugin for an llms.txt setting.<\/li>\n<li><strong>Pick one owner.<\/strong> Keep the source your team will actually maintain and switch off llms.txt in the others, so a plugin update cannot swap the file without anyone noticing.<\/li>\n<li><strong>Match a detail.<\/strong> Note something unique in the source you kept, such as the exact wording of the site summary, then fetch the public URL. If that wording is missing, a different source is still answering.<\/li>\n<li><strong>Recheck after changes.<\/strong> Fetch the file again after plugin updates, theme changes, host migrations, and after setting pages to noindex.<\/li>\n<\/ol>\n<table>\n<thead>\n<tr>\n<th>Symptom<\/th>\n<th>Likely cause<\/th>\n<th>First check<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Public file ignores your plugin settings<\/td>\n<td>Another source answers at \/llms.txt<\/td>\n<td>A physical file in the root folder, or a second plugin<\/td>\n<\/tr>\n<tr>\n<td>Yoast says the file couldn&#8217;t be auto-generated<\/td>\n<td>Filesystem permissions<\/td>\n<td>Ask your host to check write permissions<\/td>\n<\/tr>\n<tr>\n<td>Expected page missing from Rank Math output<\/td>\n<td>The page is noindex, or the posts and terms limit was reached<\/td>\n<td>The page&#8217;s robots setting and the limit<\/td>\n<\/tr>\n<tr>\n<td>No llms.txt option in Yoast<\/td>\n<td>Multisite install<\/td>\n<td>Use a physical file or another method<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Before uploading a manual file, paste it into the free <a href=\"https:\/\/maxaeo.ai\/tools\/llms-txt-generator\/\">llms.txt generator and validator<\/a>, which reports syntax issues by line number.<\/p>\n<h2>Common WordPress llms.txt mistakes<\/h2>\n<h3>Treating it like robots.txt<\/h3>\n<p><code>robots.txt<\/code> provides crawler directives. <code>llms.txt<\/code> is primarily a curated content guide. One does not replace the other. Our comparison of <a href=\"https:\/\/maxaeo.ai\/blog\/llms-txt-vs-robots-txt\/\">llms.txt vs robots.txt<\/a> shows how the two files work together.<\/p>\n<h3>Listing the entire site<\/h3>\n<p>More URLs do not automatically create more authority. Include the pages that best explain the business and satisfy real buyer questions.<\/p>\n<h3>Publishing private or unstable URLs<\/h3>\n<p>Do not include draft, member-only, temporary, or frequently changing URLs unless access and accuracy are intentional.<\/p>\n<h3>Forgetting cache layers<\/h3>\n<p>A newly uploaded file may be hidden behind a page cache, CDN cache, or cached 404. Purge relevant caches and test from outside your logged-in session.<\/p>\n<h3>Expecting immediate AI citations<\/h3>\n<p>An <code>llms.txt<\/code> file cannot force an AI platform to mention, recommend, or cite a brand. Measure visibility across real buyer prompts instead of judging success from the file\u2019s existence alone.<\/p>\n<p>For broader measurement, compare <a href=\"https:\/\/maxaeo.ai\/blog\/ai-search-brand-visibility\/\">AI search brand visibility<\/a> across platforms and competitors. MaxAEO tracks brand mentions, rankings, sentiment, and citation sources across eight AI engines, with daily monitoring and bilingual market coverage.<\/p>\n<h2>How often should you update the file?<\/h2>\n<p>Review <code>llms.txt<\/code> whenever your site changes its positioning, product structure, pricing, documentation, or core URLs. A quarterly review is a reasonable minimum for stable sites; fast-moving SaaS companies may need a monthly review.<\/p>\n<p>Use a simple maintenance log:<\/p>\n<div style=\"overflow-x:auto;\">\n<table style=\"width:100%;border-collapse:collapse;margin:1.5em 0;font-size:0.95em;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">Check<\/th>\n<th style=\"border:1px solid #e3e6ea;padding:8px 12px;background:#f6f8fa;text-align:left;font-weight:600;\">Recommended action<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">New product or service<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Add the canonical overview page<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Retired page<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Remove or replace the URL<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Rebrand or repositioning<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Rewrite the site summary<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">New documentation<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Add the most useful entry point<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">URL migration<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Update every affected link<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">AI visibility change<\/td>\n<td style=\"border:1px solid #e3e6ea;padding:8px 12px;vertical-align:top;\">Compare cited sources and missing pages<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Frequently asked questions<\/h2>\n<h3>Is llms.txt required for WordPress?<\/h3>\n<p>No. WordPress sites can function normally without it, and publishing the file is not a guaranteed requirement for appearing in AI search.<\/p>\n<h3>Should I use llms.txt or llms-full.txt?<\/h3>\n<p>Use <code>llms.txt<\/code> as a concise navigation file. Add <code>llms-full.txt<\/code> only if you can maintain a reliable, complete version of your important content.<\/p>\n<h3>Can I add llms.txt without coding?<\/h3>\n<p>Yes. You can use a compatible plugin, a hosting file manager, or SFTP. The key requirement is that the public file resolves at <code>\/llms.txt<\/code>.<\/p>\n<h3>Does llms.txt replace an XML sitemap?<\/h3>\n<p>No. An XML sitemap helps search engines discover URLs. <code>llms.txt<\/code> provides a human-readable, curated guide for AI-oriented content discovery.<\/p>\n<h3>How can I check whether AI engines understand my brand?<\/h3>\n<p>Run representative buyer prompts across multiple AI platforms and track mentions, recommendations, sentiment, rankings, and cited sources. A free <a href=\"https:\/\/maxaeo.ai\/\">AI visibility diagnostic<\/a> can provide a starting point.<\/p>\n<h3>Does Yoast SEO create an llms.txt file?<\/h3>\n<p>Yes. In Yoast SEO, go to Settings, then Site Features, and under AI tools open LLMS.txt and toggle it on. To control which pages appear, use Customize llms.txt file and choose Manual page selection. Yoast notes the feature is not available for multisite, and says to check the web server&#8217;s filesystem permissions if the file couldn&#8217;t be auto-generated.<\/p>\n<h3>Does Rank Math support llms.txt?<\/h3>\n<p>Yes. Turn on the LLMS Txt module from the Rank Math SEO dashboard, then edit it under General Settings, Edit llms.txt. You can pick post types and taxonomies, set a limit on posts and terms, and add custom content. Rank Math excludes posts set to noindex, and the file stays empty until you configure and save it.<\/p>\n<h3>Can I run two llms.txt plugins at once?<\/h3>\n<p>You can install both, but only one response can answer at \/llms.txt, so the file visitors and crawlers see may not be the one you edited. Keep one source, switch off the llms.txt feature in the others, and fetch the public URL after each plugin update to confirm the content still matches your selection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to create and deploy a WordPress llms.txt file using plugins or SFTP, avoid common errors, and validate the live result. Start your audit.<\/p>\n","protected":false},"author":1,"featured_media":3814,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/posts\/3491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/comments?post=3491"}],"version-history":[{"count":4,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/posts\/3491\/revisions"}],"predecessor-version":[{"id":5142,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/posts\/3491\/revisions\/5142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/media\/3814"}],"wp:attachment":[{"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/media?parent=3491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/categories?post=3491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maxaeo.ai\/blog\/wp-json\/wp\/v2\/tags?post=3491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}