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.
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"]
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.Upgrading from XS2H XML Sitemap to HTML 1.x does not require users to recreate their settings or edit existing content:
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.[xs2h-sitemap-html] remains registered with all former attributes and defaults.ids="1,2" still selects the first and second saved sitemaps.[sitemap-html] retains its 0-based IDs from version 3.3.1.The compatibility layer never overwrites non-default 3.x settings.