| 开发者 | easycommerce |
|---|---|
| 更新时间 | 2026年9月26日 21:00 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/sitemap.xml. There is no settings screen, no wizard and nothing to configure.
No setup
You do not choose post types, set priorities or regenerate anything. NiroSitemap finds every public post type on your site, including ones added later by your theme or other plugins, and lists them for you.
Plug and play
The sitemap works the moment you activate the plugin. You do not need to save your permalinks, create files or add anything to robots.txt. Deactivate it and everything it added is removed.
Dynamic
The sitemap is built from your live content, not from a static file. When you publish, update, unpublish or delete a post, the sitemap reflects it on the next request.
How it works
/sitemap.xml is a sitemap index that points to one sitemap per post type, such as /sitemap-post-1.xml, /sitemap-page-1.xml or /sitemap-product-1.xml.-2.xml, -3.xml and so on./sitemap-home.xml) when your homepage shows your latest posts. A static front page is listed as a normal page.Sitemap: line to your virtual robots.txt so search engines find the sitemap on their own./wp-sitemap.xml) so search engines see one sitemap, not two./?nirositemap=index./sitemap.xml, /sitemap-home.xml and /sitemap-{post-type}-{number}.xml, and removes them when you deactivate the plugin.nirositemap_version and nirositemap_bust), which are deleted when you deactivate the plugin.sitemap.xml file exists in your site's root folder, your web server serves that file instead, so delete it to use NiroSitemap.
Privacy
NiroSitemap does not collect or send any data. It does not contact search engines. They read the sitemap when they visit your site.
For developers
Filters:
nirositemap_post_types — array of post type names to include.nirositemap_query_args — WP_Query arguments for each post type, with the post type as the second argument. Use it to exclude posts, for example ones marked noindex.add_filter( 'nirositemap_post_types', fn( $types ) => array_diff( $types, array( 'my_cpt' ) ) );
add_filter( 'nirositemap_query_args', function ( $args ) { $args['meta_query'] = array( array( 'key' => '_noindex', 'compare' => 'NOT EXISTS' ) ); return $args; } );
After changing these filters, update any published post, or wait up to 12 hours, to see the change.
nirositemap folder to /wp-content/plugins/.https://your-site.com/sitemap.xml to see your sitemap, then submit that URL in Google Search Console and Bing Webmaster Tools.No. Activate the plugin and your sitemap is ready at /sitemap.xml. Then submit that URL once in Google Search Console and Bing Webmaster Tools.
At /sitemap.xml on your site, for example https://example.com/sitemap.xml. If your site uses plain permalinks, it is at https://example.com/?nirositemap=index.
Check for these, in order:
sitemap.xml file in your site's root folder. Your web server serves it before WordPress loads. Delete it./sitemap.xml, such as Yoast SEO, Rank Math or All in One SEO. Turn off that plugin's sitemap feature, or deactivate NiroSitemap.NiroSitemap only adds it when Settings > Reading > Search engine visibility allows search engines to index your site. The line is also missing if a real robots.txt file exists in your site's root folder. Add the line to that file yourself.
Every public post type that has viewable URLs, except media attachments. That includes posts, pages and custom post types from your theme or other plugins. Developers can change the list with the nirositemap_post_types filter.
No. NiroSitemap lists posts, pages and custom post types only.
Right away. Publishing, updating, unpublishing or deleting a published post refreshes the sitemap on its next request.
No. Google retired sitemap pings in 2023. Submit your sitemap once in Google Search Console, and Google will check it regularly after that.
Deactivating removes the sitemap URLs and deletes the plugin's options. The built-in WordPress sitemap at /wp-sitemap.xml comes back. Cached sitemaps expire on their own within 12 hours.