[WordPress] 外掛分享: XS2H XML Sitemap to HTML

首頁外掛目錄 › XS2H XML Sitemap to HTML
全新外掛
安裝啟用
尚無評分
205 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.2 上架:2025-08-23

內容簡介

Summary:
這個 WordPress 外掛可以透過 shortcode 從一個或多個 XML 網站地圖中生成可搜索的 HTML 列表或表格,並從每個 URL 的最後路徑部分提取易讀的標題。

問題與答案:
1. 這個 WordPress 外掛的主要功能是什麼?
- 這個外掛可以從一個或多個 XML 網站地圖中生成可搜索的 HTML 列表或表格,並且提取每個 URL 的最後路徑部分作為標題。

2. 這個外掛的特色有哪些?
- 可以在列表或表格的排版中展示多個網站地圖。
- 通過即時搜索輸入,可以根據標題或 URL 過濾條目。
- 自動提取標題:僅取最後路徑部分(最後一個“/”後的部分),將分隔字符(破折號或底線)替換為空格,然後應用大小寫規則。
- 提供選項以顯示或隱藏原始 URL 和最後修改日期。
- 在設置中具有服務器端的 shortcode 生成器,便於複製和粘貼(所有參數始終可見)。
- 可配置的緩存 TTL(以秒為單位)以減少外部請求。

3. 標題是如何生成的?
- 取URL最後一個斜槓(/)後的路徑。
- URL解碼該部分。
- 將配置的“Slug Separator”(默認為-)和底線(_)替換為空格。
- 將多個空格合併為一個。
- 應用選定的大小寫規則。

4. 這個外掛有哪些限制?
- 只使用最後一個 URL 部分,中間目錄或多個部分無法包括在內。
- 沒有每個條目的自定義標題,除了全局破折號分隔符和大小寫設置。
- 不能選擇特定路徑深度(例如,“取倒數第二個部分”)。
- 除了內置的列表/表格輸出之外,沒有支持將自定義模板或HTML嵌入到每個項目周圍。

5. 這個外掛的授權是什麼?
- 這個外掛是自由軟件,根據 GNU 通用公共許可證第2版或更新版本許可。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「XS2H XML Sitemap to HTML」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Generate a searchable HTML list or table from one or more XML sitemaps via shortcode, with human-readable titles extracted from each URL’s final path segment.
Features

Display multiple sitemaps together in list or table layouts
Live search input filters entries by title or URL
Automatic title extraction: takes only the last path segment (after the final “/”), replaces separator characters (dash or underscore) with spaces, then applies casing (Title Case, UPPERCASE, lowercase, ucfirst, or none)
Options to show or hide the original URL and last-modified date
Server-side shortcode generator in settings for easy copy-and-paste (all parameters always visible)
Configurable cache TTL (in seconds) to reduce external requests

How Titles are Generated

Take the URL path after the final slash (/).
URL-decode that segment.
Replace the configured “Slug Separator” (default -) and underscores (_) with spaces.
Collapse multiple spaces to one.
Apply the selected case rule.

For example: https://example.com/category/sub-item-name
→ “sub-item-name” → “sub item name” → “Sub Item Name” (Title Case)
Limitations

Only the last URL segment is used—intermediate directories or multiple segments cannot be included.
No per-entry custom titles beyond the global slug-separator and casing settings.
Cannot select a specific path depth (e.g. “take the second-to-last segment”).
No support for injecting custom templates or HTML around each item beyond the built-in list/table output.

License
This plugin is free software, licensed under the GNU General Public License v2 or later.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon