HTML sitemap is not updating

#631433
  • Resolved Anonymous
    Rank Math free

    Hello

    I’m using an HTML sitemap via a shortcode to display posts and categories on my 404 page.

    It all worked fine when I set it up but I’ve noticed that when I add new posts and categories to my site, they are not reflected in the sitemap.

    I’ve scoured all the options but can’t find a setting that I might have overlooked that makes the sitemap update itself when new things are added.

    Please can you point me in the right direction.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous
    Rank Math free

    Hi, I’m using the Rank Math SEO plugin and was under the impression that it should be updating automatically once the shortcode is in place.

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please ignore the above reply. Rank Math automatically updates your HTML sitemap when you publish any post or page. However, if it is not updating on your website then it could be a caching issue. In this case, please try to follow the steps below and see if that works for you:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. If the above steps don’t seem to work, kindly apply the following filter to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘HTML sitemap is not updating’ is closed to new replies.