Support » Plugin: Yoast SEO » WP 5.5 sitemaps and Yoast

  • Resolved Andy Fragen


    I had a site with Yoast active and Yoast sitemaps disabled. It is my understanding then that WP 5.5 core sitemaps would be produced.

    When I would go to the /wp-sitemap.xml page my site would 404. If I deactivated Yoast it would show the sitemap.

    • This topic was modified 6 months, 3 weeks ago by Andy Fragen.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Ramanan


    Yeah the plugin disables the native sitemap:

    But I don’t know how to re-enable it.

    Thread Starter Andy Fragen


    This seems like it should only happen when Yoast sitemaps are enabled.

    Plugin Support Taco Verdonschot


    @afragen Thanks for asking this question.

    You’ve deliberately disabled the sitemaps in your SEO plugin, saying you don’t want a sitemap. You’ve probably got a very good reason for doing so.

    Now you updated your WordPress version. Wouldn’t it be weird if we suddenly allowed WordPress to silently enable sitemaps on your site anyway?

    We want you to have the best sitemap experience, so if you want sitemaps, you’ll get the best: Yoast SEO sitemaps. And if you don’t want sitemaps, we make that happen for you.

    Does that answer your question?

    Thread Starter Andy Fragen


    @tacoverdo don’t think of it as I don’t want sitemaps. Think of it as I wish to use core sitemaps.

    But it does answer my question, thanks.

    Add “add_filter( ‘wp_sitemaps_enabled’, ‘__return_true’ );” to your function file

    Thread Starter Andy Fragen


    Thanks @britsinph, but if I’m not using Yoast’s sitemap feature they shouldn’t disable the core sitemaps.

    @tacoverdo I realy enjoy the features of Yoast SEO, but I would like to decide which tool I use to generate my sitemap. So, if I disable sitemap in Yoast plugin I still would like to have to option to generate the sitemap via WordPress core. I don’t think it’s right that Yoast plugin forces me to use the Yoast sitemap or no sitemap.

    Could you please let me know if there is a plan to adjust Yoast settings to fix this issue?



    I agree with Andy here.

    If I disable Yoast sitemap, the default sitemap should be renabled. I didn’t ask yoast to turn on the sitemap so the defaul sitemap should work. I shouldn’t have to spend hours scourging forums to find this functions to enable the sitemap.

    add_filter( ‘wp_sitemaps_enabled’, ‘__return_true’ );

    Also the docs doesn’t seem to point to this or their FAQ.

    not only that; if Yoast is disabling the default sitemap, then it should also remove the sitemap line in robots.txt

    it is added in class-wp-sitemaps.php with
    add_filter( 'robots_txt', array( $this, 'add_robots' ), 0, 2 );
    which might be a challenge to remove, but that’s not my problem 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.