codehaven - php snippets - coding help
Generic filters
Exact matches only
  • wp-sitemap.xml not showing after disabling Yoast

    11th March 2021

    Wordpress - Miscellaneous

    wordpress category

    After you have disabled Yoast and want to use the standard wp-sitemap.xml you may have problems.
    It will not work and display straight away.

    The error you receive maybe a 404, when loading /wp-sitemap.xml can be caused by a number of issues, including the permalinks or rewrite rules. I would recommend to try resetting the permalink structure in WordPress which can be done by performing the following steps:

    1. Login to WordPress
    2. Go to Settings>Permalinks
    3. Clicking ‘Save Changes’ without making any modifications

    Add this to your functions file.

    This should fix it.

    Was this code snippet helpful?