説明
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.
機能
- 複数のサイトマップをリストまたはテーブルレイアウトでまとめて表示
- Live search input filters entries by title or URL
- 自動タイトル抽出: 最後のパスセグメントのみを取得し (最後の「/」の後)、区切り文字 (ハイフンやアンダースコア) をスペースに置換し、選択した大文字小文字設定を適用します。
- Options to show or hide the original URL and last-modified date
- 設定内のサーバーサイドショートコードジェネレーターで簡単にコピー&ペースト可能 (すべてのパラメータが常に表示)
- Configurable cache TTL (in seconds) to reduce external requests
タイトルの生成方法
- Take the URL path after the final slash (
/). - URL-decode that segment.
- 設定された「スラッグ区切り」(デフォルト
-) とアンダースコア (_) をスペースに置換します。 - 複数のスペースを1つにまとめます。
- 選択された大文字小文字ルールを適用します。
例: https://example.com/category/sub-item-name
“sub-item-name” “sub item name” “Sub Item Name” (タイトルケース)
制限事項
- Only the last URL segment is used—intermediate directories or multiple segments cannot be included.
- 各エントリに対するカスタムタイトルは、グローバルなスラッグ区切りや大文字小文字設定を超えてはサポートされません。
- 特定のパス深度を選択することはできません (例: 「最後から2番目のセグメントを取る」)。
- No support for injecting custom templates or HTML around each item beyond the built-in list/table output.
ライセンス
This plugin is free software, licensed under the GNU General Public License v2 or later.
インストール
xml-sitemap-to-htmlフォルダを/wp-content/plugins/にアップロードします。- Activate XS2H XML Sitemap to HTML via Plugins.
- 設定 XS2H XML Sitemap to HTML に移動します:
- Paste each sitemap URL on its own line.
- スラッグ区切り文字を設定します。
- Set Cache TTL in seconds (0 = no caching).
- 変更を保存します。
- 同じページでショートコードジェネレーターを使用します:
- 含めたいサイトマップにチェックを入れます。
- Configure search, layout, casing, URL/date display, etc.
- ショートコード生成をクリックし、結果をコピーします。
- 生成されたショートコードを任意の投稿やページに貼り付けます。
ショートコード例: [xs2h-sitemap-html ids=“1,2” search=“true” separator=”-” layout=“list” show_url=“false” show_lastmod=“true” case=“title” cache_ttl=“3600”]
FAQ
-
Can I include nested folder names in titles?
-
Not currently. Only the final segment after the last
/is used. -
How do I clear or reset the cache?
-
Set Cache TTL to
0and save; existing transients will expire immediately. -
Can I override an individual entry’s title?
-
No — custom titles per entry are not supported beyond the global slug and case settings.
評価
このプラグインにはレビューがありません。
貢献者と開発者
変更履歴
1.2
- 初回リリース: 複数サイトマップ対応、ライブ検索、リスト/テーブルレイアウト、サーバーサイドジェネレーター、基本的なスラッグベースのタイトル、完全な国際化対応。