Опис
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.
Встановлення
- 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.
Часті питання
-
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.
Відгуки
Для цього плагіна немає відгуків.
Учасники та розробники
“TaxoMap Category Sitemap” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “TaxoMap Category Sitemap” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
1.0.0
- Initial release.