automattic / msm-sitemap
Comprehensive sitemaps for your WordPress.com VIP site.
Installs: 278
Dependents: 0
Suggesters: 0
Security: 0
Stars: 77
Watchers: 118
Forks: 39
Open Issues: 21
Type:wordpress-plugin
Requires
- php: >=5.6
- composer/installers: ~1.0
Requires (Dev)
- dev-develop
- dev-main
- 1.5-beta
- 1.4.2
- 1.4.1
- 1.4
- 1.3
- 1.2.1
- 1.2
- 1.1
- 1.0
- dev-fix/sitemap-post-permalink
- dev-fix/docs
- dev-add/license
- dev-add/tests
- dev-proposal-hreflang-support
- dev-phpcs-fixes
- dev-cojennin/modify-sitemap-element-1
- dev-cojennin/modify-sitemap-element
- dev-add/activation-hooks
- dev-add/delete-handling
- dev-add/cache-improvement
- dev-remove/flot-submodule
- dev-image-schema-location
- dev-pr/105
- dev-kill/full-site-cron
- dev-add/image-support
- dev-fix/code-cleanup
- dev-fix/404
This package is auto-updated.
Last update: 2025-07-15 15:26:18 UTC
README
Stable tag: 1.4.2
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: sitemap, xml, seo, performance, multisite
Contributors: metro, automattic, alleyinteractive, makermedia, 10up
High-performance XML sitemaps for large-scale WordPress sites. Built for speed, extensibility, and reliability. Metro Sitemap generates robust, scalable XML sitemaps for WordPress sites of any size. Designed for high-traffic and enterprise environments, it ensures your content is discoverable by search engines without slowing down your site.
At a Glance
- Fast, reliable XML sitemaps for large and small sites
- Asynchronous generation avoids timeouts and memory issues
- Supports custom post types (see FAQ)
- Multisite compatible
- WP-CLI support for advanced management
- Extensible via hooks and filters (see developer docs)
- Admin UI for stats and manual actions
Installation
- Upload the plugin folder to
/wp-content/plugins/
or install via the WordPress admin. - Activate the plugin through the 'Plugins' menu in WordPress.
- (Optional) Visit Tools > Sitemap in the admin for stats and manual actions.
- Sitemaps will be generated automatically in the background.
Usage
- Your sitemap index will be available at
/sitemap.xml
(e.g.,https://example.com/sitemap.xml
). - Sitemaps are generated in the background and updated as you publish new content.
- The admin UI (Tools > Sitemap) provides stats and lets you manually trigger generation if needed.
Frequently Asked Questions
Why isn’t my custom post type included in the sitemap?
By default, only the post
post type is included. To add custom post types (like page
, news
, or others), see the Developer Guide.
How do I include posts with a custom status?
By default, only published posts are included. You can change this via a filter. See the Developer Guide.
How do I regenerate the sitemap?
Sitemaps are generated automatically, but you can:
- Use the admin UI (Tools > Sitemap) to trigger a manual rebuild
- Use WP-CLI commands (see below)
Does it work on multisite?
Yes! Each site in your network will have its own sitemaps. The plugin can be network-activated.
How do I exclude specific posts or dates?
You can filter which posts or dates appear in the sitemap using hooks—see the Developer Guide.
Where is the sitemap stored?
Sitemap XML is stored in a custom post type (msm_sitemap
) and served on-demand for fast performance.
Can I customize the number of posts per sitemap?
Yes, this is filterable. See the Developer Guide.
WP-CLI Commands
Metro Sitemap provides several WP-CLI commands for advanced users:
$ wp msm-sitemap generate-sitemap $ wp msm-sitemap generate-sitemap-for-year --year=2024 $ wp msm-sitemap generate-sitemap-for-year-month --year=2024 --month=7 $ wp msm-sitemap generate-sitemap-for-year-month-day --year=2024 --month=7 --day=13 $ wp msm-sitemap recount-indexed-posts
See wp help msm-sitemap <command>
for details and options.
Support
- GitHub Issues (for bug reports and feature requests)
- WordPress VIP Support (for WPVIP customers)
Credits
Metro Sitemap is a joint collaboration between Metro.co.uk, WordPress VIP, Alley Interactive, Maker Media, 10up, and others. Special thanks to all contributors.
Changelog
See CHANGELOG.md for a full history of changes.
License
GPLv2 or later. See LICENSE for details.
Developer Documentation
For advanced customization, see DEVELOPERS.md.