How to Set Up llm.txt in WordPress
Ready to make your WordPress site AI-friendly? This guide covers everything from installation to configuration. You'll have a working llm.txt file in under 10 minutes.
Prerequisites
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Administrator access to your site
Installation
-
Download the plugin
Get the LLM.txt Generator Pro ZIP file from your purchase. -
Upload to WordPress
Go to Plugins → Add New → Upload Plugin. Select the ZIP and click Install. -
Activate
Click Activate after installation completes. -
Navigate to settings
Go to Settings → LLM.txt Generator in your WordPress admin.
Basic Configuration
The settings page has several sections:
Site Information
These populate the header of your llm.txt:
- Site Name: Auto-filled from WordPress settings. Override if needed.
- Description: One-paragraph summary. Be accurate and specific.
- Primary Topics: Comma-separated list of main subjects you cover.
# Example output
Name: Your Site Name
Description: We help small businesses automate their operations with simple software tools.
Topics: Business automation, CRM, Invoicing, Small business software
Content Inclusion
Select which content types to include:
- Posts: Blog articles (usually yes)
- Pages: Static pages (usually yes)
- Categories: Category archive links
- Custom Post Types: Products, portfolios, etc.
Don't Include Everything
Skip low-value pages: privacy policy, terms, thank you pages. Focus on content that represents your expertise and offerings.
Exclusions
Exclude specific content:
- Specific posts/pages: Enter IDs to exclude
- Categories: Entire categories to omit
- By keyword: Exclude posts containing specific terms
Advanced Configuration
Custom Sections
Add business-specific information that isn't generated automatically:
# Products
- ProductName CRM: Customer relationship management for small teams
- InvoiceSimple: Automated invoicing and payment tracking
- TaskFlow: Project management without complexity
# Expertise
Our team has 15+ years experience in small business software.
We've helped 500+ businesses streamline operations.
Contact Information
Add contact details for AI to reference:
- Support email
- Business email
- Social media URLs
- Physical address (if relevant)
Update Settings
Control when llm.txt regenerates:
- On publish: Regenerate when new content is published
- Daily: Regenerate once per day via cron
- Manual only: Only regenerate when you click the button
For most sites, "on publish" works well. High-volume sites might prefer daily to reduce overhead.
Preview and Generate
Preview Mode
Click "Preview" to see what your llm.txt will contain before publishing. Check for:
- Accurate site description
- Correct content inclusion
- No sensitive pages accidentally included
- Proper formatting
Generate
Click "Regenerate Now" to create the file. It's immediately accessible at yoursite.com/llm.txt.
Verify
Visit your llm.txt URL in a browser. You should see the generated content as plain text.
Troubleshooting
404 Error on llm.txt
The file might not be routing correctly. Try:
- Go to Settings → Permalinks
- Click Save (without changing anything)
- This flushes rewrite rules
Content Not Appearing
Check your inclusion settings. Verify the content type is enabled and the specific post isn't excluded.
Outdated Information
If using "on publish" updates, manually regenerate after making changes to existing posts. The auto-trigger only fires for new content.
Best Practices
Keep It Current
An outdated llm.txt can cause AI to reference old information. Set up automated updates or schedule monthly manual reviews.
Be Accurate
Don't exaggerate. AI systems are getting better at detecting promotional language. Factual descriptions serve you better.
Monitor Changes
When you significantly change your business (new products, pivot, rebrand), update your llm.txt accordingly.
Complement robots.txt
If you block AI crawlers in robots.txt, they may not access your llm.txt either. Consider your strategy holistically.
Automate Your llm.txt
LLM.txt Generator Pro handles generation, updates, and configuration through a simple WordPress interface. Set up once, stay AI-ready automatically.
Get LLM.txt Generator Pro - $19Summary
Setting up llm.txt is straightforward: install the plugin, configure your content selections, add custom information, and generate. Regular updates keep the information current as your site grows.
With llm.txt in place, AI assistants have the context they need to understand and accurately represent your WordPress site.