Generic filters
Exact matches only

WordPress sitemap not working after uninstalling Yoast

7th April 2021

Admin WP

wordpress category

Looks like Yoast has gone out of its way to cripple WordPress sitemaps after you install Yoast!!!

After version 5.5 WordPress will create a sitemap for you at this address /wp-sitemap.xml
Seems Yoast does not like this and disabled the core sitemap. (another reason not to use Yoast!)
don’t worry we have you covered.
1. Add the code below to your functions.php file in your theme.
2. Save the permalink structure again.
3. Un-Cache everything.
4. Make sure WordPress is at least version 5.5

https://wordpress.org/support/topic/yoast-seo-cripples-wordpress-5-5-wp-sitemap-xml-functionality/

Was this code snippet helpful?