Hello,
We apologize for the issue you are facing with your sitemap. It seems that your sitemap is not displaying all the posts and is not sorting by last modified as expected. Here are a few steps you can take to troubleshoot and potentially resolve these issues:
-
Check Sitemap Settings: Ensure that your sitemap settings are correctly configured to include all post types. You can do this by navigating to Rank Math SEO → Sitemap Settings in your WordPress dashboard and verifying that all relevant post types are checked.
-
Flush Permalinks: Sometimes, flushing permalinks can resolve issues with sitemaps. To do this, go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button without making any changes. This can help refresh the sitemap generation.

-
Check for Plugin Conflicts: There may be a conflict with another plugin that is affecting the sitemap. You can use the Health Check plugin to identify any potential conflicts.
-
Custom Canonicals: If you have set custom canonical URLs for your posts, those posts may not appear in the sitemap. Ensure that you remove any custom canonicals if you want them to be included in the sitemap.
-
Caching Issues: If you have caching enabled on your site, it might be serving an outdated version of your sitemap. Clear your website cache and check the sitemap again.
If these steps do not resolve the issue, please reply to this ticket with more details about your site or any specific error messages you are encountering, and a human agent from the Rank Math Support team will assist you further.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
Can you please share some affected URLs that are not showing on your sitemap?
Meanwhile, 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. Apply the following filter to your site to disable the transients cache for the sitemap:
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/
Let us know how it goes. Looking forward to helping you.
Thank you.