| 开发者 | skreep |
|---|---|
| 更新时间 | 2026年10月30日 18:34 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
/llms.txt index and optional Markdown versions of selected public content. You stay in control of what is exposed, how dense the index should be, which endpoints should be noindexed, and which posts or pages should be excluded.
What the plugin creates
/llms.txt.md endpoints under:
/{base}/{post_type}/{path}.md
Each Markdown export includes a stable, plugin-defined JSON metadata block with title, URL, published and modified dates, language, description, author, and publisher, followed by a Markdown conversion of the post content. Frontend pages advertise /llms.txt with a describedby link, while supported singular views also receive alternate Markdown links.
An optional content-negotiation mode can return the same representation from canonical singular URLs when a client explicitly sends Accept: text/markdown. The mode is disabled by default and uses Vary: Accept, so it should only be enabled when every page cache, reverse proxy, and CDN respects that header.
Why site owners use it
/llms.txt and .md exports./llms.txt and Markdown exports without changing their WordPress visibility.Accept: text/markdown content negotiation on canonical singular URLs with Vary: Accept; disabled by default for cache safety./llms.txt and the Markdown URL pattern./llm/post/example.md, with post type controls for posts, pages, and safe public custom post types./llms.txt and Markdown exports.unfiltered_html, length caps for custom Markdown fields, and developer filters for edge cases.No. Index structure and content processing both default to legacy. Enable them independently in Settings -> LLM Friendly after comparing the unsaved output. Switching back preserves pins, topic selections and manual Markdown. There is no destructive data migration.
Enable structured index mode and llms.txt. Follow Content catalog from /llms.txt, or open /{base}/catalog/index.txt. Follow Next page links even when a filtered page has no items. Topic indexes are built in background batches; type indexes remain available while the scan runs. Catalog entries use canonical HTML when Markdown is disabled.
WordPress may block its own HTTP requests or fail local TLS/DNS checks. The plugin retains TLS verification and reports that limit honestly. It does not accept arbitrary probe URLs or send authentication cookies. Confirm actual endpoint availability separately when the environment blocks a probe.
The plugin serves llms.txt dynamically via WordPress. It is not a physical file on disk.
Most often this is a rewrite or web-server routing issue. If you run Nginx in front of Apache, make sure .md requests are routed to WordPress (not handled as static files).
When you change the base path, flush permalinks and confirm that .md and /llms.txt are not short-circuited by static file rules.
Enable the "Send noindex header for Markdown exports" option (stored as md_send_noindex) to emit the header on all Markdown responses.
Enable "Serve Markdown when a client explicitly requests it" in the Markdown exports panel. The option is stored as enabled_content_negotiation and is off by default. Before enabling it, verify that page caches, reverse proxies, and CDNs respect Vary: Accept; otherwise a cached Markdown response could be served to an HTML visitor or vice versa.
No special Google Search treatment is promised. Google states that llms.txt and Markdown are not specially used for AI Overviews or AI Mode; normal crawling, indexing, and snippet eligibility still apply. Discovery files, noindex directives, crawler access rules, and training or licensing permissions are separate controls. Publishing llms.txt or Markdown does not grant usage rights.
Use Settings -> LLM Friendly -> llms.txt -> "Essential links". Add one item per line as Title | URL | Notes; URLs may be absolute or site-relative. The plugin also adds configured front page, posts page, and privacy policy links when available.
Yes. Open the post editor and use the "Markdown override (LLM Friendly)" metabox. In Gutenberg it appears with the editor's additional panels/metaboxes. The override accepts plain Markdown or block markup, and the llms.txt description field provides a one-line summary for llms.txt and Markdown metadata. If you want to hide a specific entry from llms.txt and Markdown exports, go to Settings -> LLM Friendly -> llms.txt -> "Excluded items", search by title, and add it to the exclusion list.
By default, the sitemap field accepts site-relative paths and same-site absolute URLs. External sitemap URLs are rejected unless a developer opts in with the llmf_allow_external_sitemap_url filter.
Not by default. Public Markdown and llms.txt exports require public, non-attachment, publicly queryable post types. Developers can explicitly opt in safe edge-case types with the llmf_exportable_post_type filter.
describedby discovery for llms.txt and combined canonical/describedby Markdown Link headers.Accept: text/markdown content negotiation with Vary: Accept.