Back to Blog

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

Installation

  1. Download the plugin
    Get the LLM.txt Generator Pro ZIP file from your purchase.
  2. Upload to WordPress
    Go to Plugins → Add New → Upload Plugin. Select the ZIP and click Install.
  3. Activate
    Click Activate after installation completes.
  4. 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:

# 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:

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:

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:

Update Settings

Control when llm.txt regenerates:

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:

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:

  1. Go to Settings → Permalinks
  2. Click Save (without changing anything)
  3. 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 - $19

Summary

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.

H

Haohunter

WordPress developer building lightweight plugins that solve real problems. No bloat, no subscriptions, just tools that work.