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

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

內容簡介

XML Sitemap to HTML 將標準的 XML 網站地圖和網站地圖索引轉換為人類可讀的 HTML 網站地圖。用戶只需添加網站地圖網址,生成短碼並放置於任意文章或頁面中,便可輕鬆展示網站地圖。

【主要功能】
• 支援多個 XML 網站地圖合併
• 自動跟隨嵌套網站地圖索引
• 可搜尋的列表與響應式表格佈局
• 從網址別名生成可讀標題
• 可選的網址與最後修改時間輸出
• 可配置的標題大小寫與分隔符

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.3.2) 或搜尋安裝

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

原文外掛簡介

XML Sitemap to HTML turns standard XML sitemaps and sitemap indexes into a human-readable HTML sitemap. Add the sitemap URLs once, create a shortcode with the built-in generator, and place it in any post or page.
Features

Combines multiple XML sitemaps
Follows nested sitemap indexes automatically
Searchable list and responsive table layouts
Human-readable titles generated from URL slugs
Optional URL and last-modified output
Configurable title capitalization and slug separator
Configurable transient cache
Duplicate URL removal
Accessible labels, status updates, and keyboard-friendly tables
Server-side shortcode generator with copy button
Backward compatibility with XS2H XML Sitemap to HTML 1.x

Usage
The shortest shortcode uses all saved sitemaps and the default settings:
[sitemap-html]

A complete example:
[sitemap-html ids="all" search="true" separator="-" layout="table" show_url="true" show_lastmod="true" case="title" cache_ttl="3600"]

Parameters

ids: all or a comma-separated list of the IDs shown in the generator.
search: true or false.
separator: Up to two slug characters to replace with spaces.
layout: list or table.
show_url: true or false.
show_lastmod: true or false.
case: title, upper, lower, ucfirst, or none.
cache_ttl: Cache duration in seconds. Use 0 to bypass the cache.

Backward Compatibility
Upgrading from XS2H XML Sitemap to HTML 1.x does not require users to recreate their settings or edit existing content:

The legacy options xs2h_sitemap_urls, xs2h_slug_separator, and xs2h_cache_ttl are copied when the corresponding 3.x options do not yet exist. Meaningful legacy values also replace untouched 3.3.1 defaults, recovering data after an intermediate 3.3.1 installation.
The legacy shortcode [xs2h-sitemap-html] remains registered with all former attributes and defaults.
Legacy shortcode IDs remain 1-based. For example, ids="1,2" still selects the first and second saved sitemaps.
Legacy title generation continues to replace underscores in addition to the selected separator.
The 3.x shortcode [sitemap-html] retains its 0-based IDs from version 3.3.1.
URL positions and duplicates are preserved when settings are saved, so generated numeric IDs do not shift unexpectedly.
Saved 3.x settings are mirrored to the legacy option names, making a rollback less likely to lose later configuration changes.
A compatibility bootstrap retains the former main plugin filename so an existing activation reference remains loadable after an update.

The compatibility layer never overwrites non-default 3.x settings.

延伸相關外掛

文章
Filter
Mastodon