Description
TaxoMap Category Sitemap publishes a standards-compliant XML sitemap listing your taxonomy term archive
pages (categories, tags, and any custom taxonomy you choose) at:
https://yourdomain.com/category-sitemap.xml
Each <url> entry includes:
<loc>— the term’s permalink, generated withget_term_link(), so it automatically respects custom
permalink structures registered for a taxonomy (including nested/custom rewrite patterns).<lastmod>— the publish/modification time (ISO 8601, site timezone) of the most recently modified
published post assigned to that term.<changefreq>and<priority>— configurable from the admin settings screen.
Features
- Works out of the box with the built-in
categorytaxonomy. - Admin screen (Settings > Category Sitemap) to check/uncheck any registered public taxonomy
(built-in or custom), plus a free-text field to add non-public custom taxonomy slugs. - The full sitemap XML is cached with
wp_cache_set()/wp_cache_get(), and the winning post ID for
each term’s “last modified” lookup is also cached, so repeat requests avoid re-running the
underlyingWP_Query. - One-click “Flush Sitemap Cache” button for after bulk content changes.
taxomapcs_sitemap_urlsfilter for further customizing the URL list before output.
Installation
- Upload the
taxomap-category-sitemapfolder to/wp-content/plugins/. - Activate the plugin through the “Plugins” screen in WordPress.
- Visit Settings > Category Sitemap to choose which taxonomies to include.
- Visit
/category-sitemap.xmlon your site to confirm it renders.
If the sitemap URL returns a 404, go to Settings > Permalinks and click “Save Changes” once to flush
rewrite rules.
FAQ
-
Can I include a custom taxonomy?
-
Yes. Any taxonomy registered with
public => truewill appear as a checkbox on the settings screen.
Non-public custom taxonomies can be added by slug in the “Additional Custom Taxonomies” field. -
How is lastmod calculated?
-
For each term, the plugin queries the single most recently modified published post assigned to that
term and uses its modified date.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“TaxoMap Category Sitemap” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “TaxoMap Category Sitemap” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.