Home Plugins xs2h xml sitemap to html
XS2H XML Sitemap to HTML logo

XS2H XML Sitemap to HTML

by fradigital on WordPress.org

Generate a searchable HTML list or table from one or more XML sitemaps via a simple shortcode.

(0)

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

  1. Take the URL path after the final slash (/).
  2. URL-decode that segment.
  3. Replace the configured “Slug Separator” (default -) and underscores (_) with spaces.
  4. Collapse multiple spaces to one.
  5. 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.

Active installations0+
Weekly downloads
21
Version1.2
Last updated8/24/2025
WordPress version6.0
Tested up to6.8.2
PHP version7.4
Tags
htmlsearchshortcodesitemapxml