Discover, trust, install: FAIR 1.0 is here
XS2H XML Sitemap to HTML
Version: 1.2
Description
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
- Fully internationalized with
.po
/.mo
translation files
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.
Installation
- Upload the
xml-sitemap-to-html
folder to/wp-content/plugins/
. - Activate XS2H XML Sitemap to HTML via Plugins.
- Go to Settings
- Paste each sitemap URL on its own line.
- Set your Slug Separator character.
- Set Cache TTL in seconds (0 = no caching).
- Save changes.
XS2H XML Sitemap to HTML:
- In the same page, use the Shortcode Generator:
- Tick the sitemaps to include.
- Configure search, layout, casing, URL/date display, etc.
- Click Generate Shortcode and copy the result.
- Paste the generated shortcode into any post or page.
Example shortcode: [xs2h-sitemap-html ids=“1,2” search=“true” separator=”-” layout=“list” show_url=“false” show_lastmod=“true” case=“title” cache_ttl=“3600”]
Faq
Not currently. Only the final segment after the last /
is used.
Set Cache TTL to 0
and save; existing transients will expire immediately.
No — custom titles per entry are not supported beyond the global slug and case settings.
Reviews
Changelog
1.0
- Initial release: multi-sitemap support, live search, list/table layouts, server-side generator, basic slug-based titles, full i18n.