Linux 软件免费装
Banner图

LLM Friendly

开发者 skreep
更新时间 2026年7月10日 23:52
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv3 or later
版权网址: 版权信息

标签

export markdown ai llm llms.txt

下载

0.1.2 0.1.0 0.1.1

详情介绍:

LLM Friendly gives your WordPress site predictable, machine-readable entry points for AI assistants, search/indexing bots, internal knowledge tools, and readers who prefer plain text. Instead of asking crawlers to infer your site structure from HTML alone, the plugin publishes a focused /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
  1. /llms.txt
The generated llms.txt file includes the site title and description, main links, sitemap and RSS references, an Essential section for important pages or curated resources, and recent items grouped by selected post type. Items can link to Markdown exports when Markdown is enabled, or to canonical HTML URLs when it is not.
  1. Markdown exports
For selected public, publicly queryable post types, the plugin exposes .md endpoints under: /{base}/{post_type}/{path}.md Each Markdown export includes a JSON metadata block with title, URL, published and modified dates, language, description, author, and publisher, followed by a Markdown conversion of the post content. Singular views also receive alternate Markdown links, so compatible tools can discover the plain-text version. Why site owners use it Key features Requirements If requirements are not met, the plugin displays an admin notice and does not run.

安装:

  1. Upload the plugin to the /wp-content/plugins/ directory, or install it through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to Settings -> LLM Friendly.
  4. Enable llms.txt and/or Markdown exports, choose post types, configure base path (optional).
  5. Save changes.
  6. If you changed the base path or endpoints, re-save Permalinks if your server has custom rewrite rules.

屏幕截图:

  • Markdown export controls, base path pattern, and selected content types.
  • Per-post-type exclusions with live title search and selected excluded items.
  • Generated llms.txt preview with cache metadata and site metadata override controls.

常见问题:

Where is llms.txt stored?

The plugin serves llms.txt dynamically via WordPress. It is not a physical file on disk.

Markdown exports return 404. Why?

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.

How do I keep Markdown out of search results?

Enable the "Send noindex header for Markdown exports" option (stored as md_send_noindex) to emit the header on all Markdown responses.

How do I configure the llms.txt Essential section?

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.

Can I ship a custom Markdown body, description, or exclude a single item?

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.

Can I use an external sitemap URL?

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.

Can a non-publicly-queryable post type be exported?

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.