A WordPress plugin that generates an llms.txt file for your site, helping AI language models better understand your content.
Features
Automatic Generation
- Generates
llms.txtfile on-the-fly at/llms.txt - Works seamlessly with WordPress Multisite
- No manual file management required
- No trailing slash redirects (clean URLs)
High Performance
- Smart caching – Content cached for 2 hours using WordPress transients
- Auto-invalidation – Cache clears when posts are published, updated, or deleted
- Optimized queries – Uses
WP_Querywith performance flags (no_found_rows, disabled meta/term caching) - Multisite-aware caching – Separate cache per site in multisite networks
Flexible Configuration
Configure everything from Settings > Reading > LLMS.txt Configuration:
- Custom Description – Override site tagline with AI-specific description
- Post Type Selection – Enable/disable specific post types (pages, posts, custom post types)
- Before/After Content – Add custom markdown content before and after post sections
- Automatically discovers all public post types
Smart Content Output
- Follows the official llms.txt specification
- Includes site name, description, and content overview
- Lists pages and posts with titles, URLs, and clean excerpts
- Shortcodes stripped – Removes shortcode syntax from excerpts
- Properly formatted markdown output
Developer-Friendly
Multiple filter hooks for customization:
dekode_llms_txt_post_types– Modify post types configurationdekode_llms_txt_query_args– Customize query arguments per post typedekode_llms_txt_before_sections– Add content before all sectionsdekode_llms_txt_after_sections– Add content after all sectionsdekode_llms_txt_before_post_list– Add content before individual post type lists
Multisite Support
Each site in a multisite network gets its own llms.txt file with site-specific content and separate cache.
For more info see: https://github.com/DekodeInteraktiv/dekode-library/tree/main/library/dekode-llms-txt
