Discover, trust, install: FAIR 1.0 is here

Plugin Banner

XS2H XML Sitemap to HTML

by fradigital

Version: 1.2

Download
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

  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.

  1. Upload the xml-sitemap-to-html folder to /wp-content/plugins/.
  2. Activate XS2H XML Sitemap to HTML via Plugins.
  3. Go to Settings XS2H XML Sitemap to HTML:
    • Paste each sitemap URL on its own line.
    • Set your Slug Separator character.
    • Set Cache TTL in seconds (0 = no caching).
    • Save changes.
  4. 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.
  5. 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”]

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 0 and 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.0

  • Initial release: multi-sitemap support, live search, list/table layouts, server-side generator, basic slug-based titles, full i18n.
  • Version:Version: 1.2
  • Last updated:Last updated: 1 month ago
  • Requires:Requires: 6.0
  • Tested:Tested: 6.8.2
Average rating:0 out of 5 stars.
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
Back to top