[WordPress] 外掛分享: One-V LLM Serve

首頁外掛目錄 › One-V LLM Serve
WordPress 外掛 One-V LLM Serve 的封面圖片
全新外掛
安裝啟用
★★★★
4.3/5 分(6 則評價)
7 天前
最後更新
問題解決
WordPress 6.0+ PHP 8.0+ v1.0.2 上架:2026-05-19

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「One-V LLM Serve」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

One-V LLM Serve makes every public page on your WordPress site available as clean Markdown at the same URL with a .md extension — zero configuration required.
https://example.com/about/ ← HTML page for humans
https://example.com/about.md ← clean Markdown for AI

AI systems — ChatGPT, Perplexity, ClaudeBot, Google AI Overviews, and most RAG pipelines — parse Markdown far more efficiently than HTML. When these systems encounter an HTML page, they must strip navigation, headers, footers, sidebars, scripts, and tracking pixels before they can read the actual content. This noise introduces errors, increases token cost, and leads to lower-quality outputs.
The Markdown file contains a configurable YAML frontmatter block followed by the page title, headings in correct hierarchy, and the body text. Nothing else.
Core features

Zero-config Markdown endpoint for every public post, page, and custom post type
YAML frontmatter with configurable fields (title, date, modified, url, description, image, tags, categories, lang, type)
/llms.txt discovery file at the site root following the llmstxt.org convention
Taxonomy archives as Markdown — /category/news.md, /tag/foo.md, custom taxonomies
?format=markdown query parameter as an alternative to the .md URL on any singular page
Per-post exclude via a sidebar checkbox on the post editor
Works with Classic Editor and Gutenberg via the the_content filter
ACF integration — opt-in per-post: pick which text, textarea, WYSIWYG, URL, email, or link fields to append below the body

Discoverability

Link: rel="alternate"; type="text/markdown" HTTP header on every HTML page tag in for HTML-based discovery
Allow: /*.md$ directive in robots.txt
X-Robots-Tag: index, follow on .md responses
CORS Access-Control-Allow-Origin: * on .md and /llms.txt so browser-based AI clients can fetch them

Operations

Transient caching with automatic invalidation on save_post, on ACF field value saves, on any ACF field group change, and on plugin settings save
“Clear cache” button in the settings page
Admin notice on fallback HTTP fetch failures
“Settings” link next to the plugin row in Plugins screen
“View .md” row action in the Posts and Pages list tables

Developer hooks

ovls_markdown filter for the final Markdown output
ovls_frontmatter filter for adding, removing, or modifying frontmatter fields
ovls_content_queries filter for the HTML extraction XPath cascade

How it works
Each request to /about.md is captured by a WordPress rewrite rule and routed through the plugin’s content generator. The generator runs the post through apply_filters( 'the_content', ... ) — the same pipeline WordPress uses on the front end — so Classic Editor, Gutenberg, and shortcodes all work without separate code paths. The rendered HTML is converted to Markdown via league/html-to-markdown, then cached in a WordPress transient.
The cache is invalidated automatically on save_post, on ACF field/group changes, and whenever plugin settings are saved. A manual Clear cache button is also available on the settings page.
Access methods
There are three equivalent ways to request the Markdown version of a page:

.md extension — https://example.com/about.md
?format=markdown query — https://example.com/about/?format=markdown
Link: rel="alternate" header — returned by every HTML page

The .md URL is the recommended canonical form.
ACF integration
When Advanced Custom Fields is active, ACF field rendering is opt-in at two levels:

Site defaults per post type — at Settings → One-V LLM Serve → ACF Defaults, tick fields that should be appended to every post of a given post type.
Per-post override — the One-V LLM Serve metabox on each post editor lists every supported ACF field applicable to that post. Tick fields to replace the site defaults for that one post.

Supported ACF types: text, textarea, wysiwyg, url, email, link. Each selected field is rendered under a ## Field Label heading. Empty fields are skipped.
Disclaimer
This plugin is provided “as is”, without warranty of any kind, express or implied, in accordance with the GNU General Public License v2 or later. The authors and contributors are not liable for any direct, indirect, incidental, special, or consequential damages — including but not limited to data loss, lost profits, business interruption, search-ranking changes, or third-party claims — arising from the use of, or inability to use, this software, even if advised of the possibility of such damages.
By installing and activating the plugin you acknowledge that:

You are responsible for testing the plugin in a staging environment before deploying to production.
You are responsible for the content this plugin exposes as Markdown — .md URLs and /llms.txt serve the same content as their HTML counterparts and are intended to be crawled and consumed by AI systems and third-party LLMs.
The plugin does not transmit data to any external service. All Markdown generation, caching, and file writes happen on your own server.

Nothing in this disclaimer is intended to exclude or limit liability for matters that cannot lawfully be excluded under the consumer-protection laws of your jurisdiction. For the full legal terms see the GPLv2 license at https://www.gnu.org/licenses/gpl-2.0.html.

延伸相關外掛

文章
Filter
Mastodon