Hello,
Thank you for contacting us and sorry for any inconvenience that this issue might have caused.
Please follow the steps below for initial troubleshooting:
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/
If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. To do this, you need to add a small piece of code to your site’s functions.php file or use a plugin like Code Snippets.
The code you need to add is this:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.
It will show you step-by-step how to use the Code Snippets plugin or edit the functions.php file safely.
After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.
in the posts I had linked to they already had those steps and I already took them if you would have looked at them you wouldn’t have wasted time those steps do not work
I fixed the critical error issue but still cant get the one not updating to update.
Hello,
In that case, you can share access to your site.
You can use s******@r*********** email address and put any First and Lastname.
Once done, please add the login details in the sensitive data section, by editing the first post on this ticket.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
We published a test post on your site and it was automatically included in the post sitemap:
[see image in sensitive data section]
Can you share the URL(s) that is not reflected in the sitemap?
Please note that pages/posts set to noindex
or without self-referencing canonical URLs are usually not added by default to the sitemap.
We look forward to helping you with this issue.
Thanks.
Oh the pages don’t have a self referencing canonical thanks for the help
Hello,
Rank Math adds self-referencing canonical URLs by default. So if you want the canonical of the page to be self-referencing the canonical URL entry in the advanced tab within the Rank Math meta box should be blank.
We hope this helps.
Thanks.