[WordPress] 外掛分享: Basis LLMs.txt File Generator

首頁外掛目錄 › Basis LLMs.txt File Generator
10+
安裝啟用
尚無評分
221 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.0 上架:2025-09-02

內容簡介

總結:這是一款全面的 WordPress 外掛,可為您的網站生成並維護符合 AI 訓練數據文檔規範的 llms.txt 檔案。

問題與答案:
- 這個 WordPress 外掛主要的功能有哪些?
- 自動生成 llms.txt 檔案在您的網站根目錄
- 符合官方 llms.txt 格式用於 AI 訓練數據文檔
- 動態內容更新,當內容更改時自動更新(可配置)
- 通過 /llms.txt URL 提供 llms.txt 內容,並使用正確的標頭
- 這個外掛的管理介面包含哪些功能?
- 完整的設定頁面,容易在 WordPress 控制面板中使用
- 顯示當前檔案狀態、大小、上次修改日期和產生時間戳記
- 選擇要包含的文章類型、分類和元數據的內容配置
- 在管理介面直接查看當前的 llms.txt 檔案
- 這個外掛的內容管理功能有哪些?
- 選擇要包含的文章類型(文章、頁面、自定義文章類型)
- 包括分類、標籤和自定義分類法
- 配置發佈狀態、日期範圍和內容限制的內容過濾
- 包含/排除作者信息、發佈日期、節錄等的元數據選項
- 設置摘要的每類型最大帖子和字數限制
- 外掛提供哪些開發人員信息?
- 提供了幾個針對開發人員的 hooks and filters
- 各個 hooks 和 filters 的功能是什麼?

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Basis LLMs.txt File Generator」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A comprehensive WordPress plugin that generates and maintains an llms.txt file for your website, following the llms.txt specification for AI training data documentation.
Features
Core Functionality

Automatic llms.txt Generation: Creates and maintains an llms.txt file in your website’s root directory
llms.txt Specification Compliance: Follows the official llms.txt format for AI training data documentation
Dynamic Content Updates: Automatically updates the file when content changes (configurable)
URL Rewriting: Serves llms.txt content via /llms.txt URL with proper headers

Admin Interface

Comprehensive Settings Page: Easy-to-use admin interface in WordPress dashboard
File Status Display: Shows current file status, size, last modified date, and generation timestamp
Content Configuration: Select which post types, taxonomies, and metadata to include
Real-time Preview: View your current llms.txt file directly from the admin interface

Content Management

Post Type Selection: Choose which post types to include (posts, pages, custom post types)
Taxonomy Integration: Include categories, tags, and custom taxonomies
Content Filtering: Configure publication status, date ranges, and content limits
Metadata Options: Include/exclude author information, publish dates, excerpts, etc.
Content Limits: Set maximum posts per type and word limits for excerpts

Cache Management

Performance Optimization: Built-in caching system for improved performance
Configurable Cache Duration: Set custom cache expiration times
Manual Cache Control: Refresh or clear cache on demand
Cache Status Monitoring: View cache size, age, and status in admin interface

Technical Features

WordPress Standards Compliance: Follows WordPress coding standards and best practices
Security First: Proper input sanitization, validation, and nonce verification
Extensible Architecture: Hooks and filters for developers to extend functionality
Multisite Compatible: Works with WordPress multisite installations
Clean Uninstall: Removes all data and files when plugin is deleted

Configuration
Content Settings

Post Types: Select which post types to include in your llms.txt file
Content Options: Configure maximum posts per type, excerpt length, meta information
Update Frequency: Choose immediate, hourly, daily, or manual updates
Cache Management: Enable caching, set duration, and monitor cache status

Usage
Once configured, your llms.txt file will be available at: https://yourwebsite.com/llms.txt
Sample Output
`markdown

My WordPress Website

A comprehensive blog about web development, WordPress tutorials, and digital marketing strategies.

This WordPress website contains the following types of content:

Posts: 150 published items
Pages: 25 published items
Portfolio: 12 published items

Posts

Getting Started with WordPress Development: A comprehensive guide for beginners looking to start developing with WordPress…
Advanced Custom Fields Tutorial: Learn how to use ACF to create custom content types and fields…
WordPress Security Best Practices: Essential security measures every WordPress site owner should implement…

Pages

About Us: Learn about our company history, mission, and team…
Services: Comprehensive overview of our web development and consulting services…
Contact: Get in touch with our team for project inquiries…

Optional

Categories: Available categories and tags
Tags: Available categories and tags
`

Developer Information
The plugin provides several hooks for developers:
Actions

llms_txt_file_generator_before_generate – Before llms.txt content is generated
llms_txt_file_generator_after_generate – After llms.txt content is generated
llms_txt_file_generator_before_cache_clear – Before cache is cleared

Filters

llms_txt_file_generator_content – Modify llms.txt content before output
llms_txt_file_generator_post_entry – Modify post entry format
llms_txt_file_generator_cache_duration – Modify cache duration

延伸相關外掛

文章
Filter
Apply Filters
Mastodon