If your WordPress site does not serve a /llms.txt file in 2026, it is invisible to a fast-growing slice of search: ChatGPT browse, Claude artifacts, Perplexity, Google AI Overviews, and every MCP-aware client. They look for it explicitly. They prefer it over crawling.
This guide ships /llms.txt on a stock WordPress install in under 10 minutes — no plugin, no developer.
What llms.txt is (and isn't)
/llms.txt is a plain-text file at your site root that gives AI agents a curated table of contents. It was pioneered by Jeremy Howard. The format is intentionally simple — a markdown-style outline.
It is NOT:
- A replacement for
robots.txt(different purpose — robots is allow/deny, llms is "here's the good stuff"). - A replacement for
sitemap.xml(sitemaps are URL inventories; llms.txt is curation). - A magic ranking boost. It is a directness signal — your site speaks the agent's language.
The minimal llms.txt for a WordPress site
Here is the smallest useful template. Replace the placeholders with your actual values.
# {Your Brand}
> {One-line description of what your site is and who it serves.}
## Docs
- [Home]({https://yoursite.com}): {What visitors do here.}
- [About]({https://yoursite.com/about}): {Founder story, mission.}
- [Pricing]({https://yoursite.com/pricing}): {Plan tiers.}
- [Blog]({https://yoursite.com/blog}): {Editorial focus.}
- [Contact]({https://yoursite.com/contact}): {Sales / support routes.}
## Top articles
- [{Article 1 title}]({https://yoursite.com/post-1}): {1-line takeaway.}
- [{Article 2 title}]({https://yoursite.com/post-2}): {1-line takeaway.}
Three rules: (1) the > blockquote on line 3 is your elevator pitch — agents lean on it heavily; (2) each link gets a sentence describing what's behind it, not just the page title; (3) keep it under ~50 entries on the first ship.
Where to put it on WordPress (3 methods)
Method 1: File Manager (cPanel / Hostinger / SiteGround) — easiest
- Log in to your host's File Manager.
- Navigate to
public_html/(or your domain's document root). - Click New File → name it
llms.txt. - Paste your template (modified with real URLs), save.
- Verify by visiting
https://yoursite.com/llms.txtin a browser — you should see your file as plain text.
Method 2: SFTP (any host)
Use FileZilla, Cyberduck, or your IDE's SFTP. Connect with the credentials from your host. Drop llms.txt into the document root (usually ~/public_html/ or ~/htdocs/).
Method 3: WPCode (free plugin, last resort if you only have wp-admin)
Install WPCode → Code Snippets → Add New → Add Your Custom Code. Pick PHP Snippet, paste:
add_action('init', function () {
if ($_SERVER['REQUEST_URI'] === '/llms.txt') {
header('Content-Type: text/plain; charset=utf-8');
echo "# Your Brand\n\n> Description...\n\n## Docs\n- [Home](https://yoursite.com): ...\n";
exit;
}
});Slower than a static file (PHP execution on every hit), but works without filesystem access. Cache it with a page cache plugin to neutralise the overhead.
llms-full.txt — the long-form companion
Pair /llms.txt with /llms-full.txt. This second file is your site's text-only corpus — what agents fall back to when they want depth. For a 50-page site, expect 20–80 KB. Skip the marketing fluff; ship the substance.
Generate it by running a text-only crawler over your site (the agentfix-mini-scanner can verify both files exist; the paid AgentFix Pack generates both from your real content).
Common mistakes (we've audited 200+ WordPress sites)
- Putting it at
/wp-content/llms.txt— must be at root, agents do not crawl arbitrary paths. - Serving as
text/html— must betext/plain; charset=utf-8. Check withcurl -I yoursite.com/llms.txt. - Pointing to URLs that 404 — break trust. Validate every link before publishing.
- Letting it grow to 5 MB — that's
llms-full.txt's job. Keepllms.txtunder ~10 KB.
Verify it works
Three quick checks:
curl -sI https://yoursite.com/llms.txt
# Expect: 200 OK + Content-Type: text/plain
curl https://yoursite.com/llms.txt | head -20
# Expect: your file content as plain text
# Or use the free CLI:
npx agentfix-mini-scanner yoursite.com
# Expect: PASS /llms.txt accessibleNext: schema.org JSON-LD
Once /llms.txt is live, the second-biggest lift for AI citations is shipping schema.org JSON-LD blocks (Organization, WebSite, FAQPage). See the JSON-LD guide next.
If you'd rather skip the manual work, the AgentFix Pack generates /llms.txt, /llms-full.txt, schema, A2A and MCP files from your real content and ships a ZIP with WordPress-specific install instructions. From $1 one-time.
