fbpx

How to Disable the New WordPress 5.5 XML Sitemap

Good news; bad news.

WordPress 5.5 now creates a new XML sitemap for your site automatically.

However, if you already have a solution for your XML sitemap, you may now have two!

The Issue

Your previously generated XML sitemap and the new native WordPress sitemap may not display the same information and potentially cause search engine optimization issues.

Where Do I Find the New WordPress Native XML Sitemap?

If you are running WordPress 5.5 or newer, check for the existence of new XML siteamp by appending /wp-sitemap.xml to your root domain.

For example:

https://yourdomain.com/wp-sitemap.xml

Using the Yoast SEO Plugin?

If you are already using the popular Yoast SEO plugin, since version 14.5 it automatically disables the new auto-generated WordPress XML sitemap feature.

In the case of Yoast SEO 14.5 or newer, if you request the native WordPress XML sitemap, you will redirected to the Yoast SEO XML sitemap.

Using the All in One SEO Plugin?

The All in One SEO plugin versions 3.6.0 (released on July 8, 2020) or newer will automatically disable the new native WordPress XML sitemap.

Use a Plugin to Disable the Native XML Sitemap

If you wish, you can use a plugin, such as Disable XML Sitemap to remove the new, native XML sitemap WordPress generates.

Disable the WordPress Native XML Sitemap Manually

The documentation for the new feature can be found in the related GitHub FAQ.

To disable the new sitemap feature, the basic option is to use a filter:

add_filter('wp_sitemaps_enabled', '__return_false');

Related Questions

Need Image, Video or Google News Sitemaps?

Adding image, video or Google news sitemaps is not supported yet in the new, native XML sitemap feature, however support will likely be added in the future.

Search Engines Discouraged?

On a site note, if your WordPress admin settings are set to “discourage search engines from indexing this site,” (under Settings –> Reading), the native XML sitemap will also be disabled. Requesting the native XML sitemap (/wp-sitemap.xml) while “discourage search engines” is enabled will yield a 404 error.

What Should I Do?

If you are already using a leading SEO or sitemap plugin (such as Yoast SEO or All in One SEO), update to a current version if possible.

If you do not wish to have an XML sitemap at all, or have another XML sitemap solution in place, you will need to use a plugin, such as Disable XML Sitemap, or manually disable/deregister the native XML sitemap using filters as noted above.

Questions/Issues?

Let me know if you run into interesting edge cases as you update to WordPress 5.5 as part your regular WordPress maintenance.

How to Disable the New WordPress 5.5 XML SitemapHow to Disable the New WordPress 5.5 XML Sitemap
Vance Bell

Vance Bell

Hi there, glad you made it! I'm Vance Bell, a freelance web designer/developer and frequent marketing consultant.

Monday to Saturday I help businesses and organizations grow attention and revenue. Sometimes on Sunday I take a break and binge watch Netflix.

Owner of Pixel Engine, a Philadelphia-based web design and online marketing studio.

If you'd like to hire me, I'd love to hear from you. If you just have a question, feel free to ask.

Comments

  • August 30, 2020
    reply

    Rick Renault

    At least on sites using “XML Sitemap & Google News,” adding the ‘wp_sitemaps_enabled’ return-false filter (as shown in this article) will yield 404 pages. I ensured that search engine visibility is encouraged. I’d be interested in hearing your thoughts.

      • August 31, 2020
        reply

        Rick Renault

        Thanks for your response, Vance. I saw that thread a few days ago and it doesn’t seem as if the plugin currently works as the author intends. With his plugin enabled, sitemap.xml redirects to the WP core sitemap. With the plugin enabled and with the addition of the wp_sitemaps_enabled filter (as suggested on this page), sitemap.xml returns 404.

        • August 31, 2020
          reply

          Rick Renault

          I installed the plugin on another site and it works as the author explained. I’ll have to review the differences. Thanks.

Post a Comment