Hello,
I apologize for the issue you are facing with your post sitemap not including all posts. Here are a few steps you can take to troubleshoot this issue:
-
Check Inclusion Settings: Ensure that the old posts are set to be included in the sitemap. You can do this by going to Rank Math SEO → Sitemap Settings and checking the settings for your posts. Make sure the Include in Sitemap option is enabled for all post types.

-
Custom Canonicals: If any of your old posts have custom canonical URLs set, they may not appear in the sitemap. You can remove the custom canonical from those posts to allow Rank Math to generate the canonical URL.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can check for conflicts using the Health Check plugin.
-
Robots.txt File: Ensure that your robots.txt file is not blocking access to your old posts. You can check this under Rank Math SEO → General Settings → robots.txt.
-
Caching Issues: If you are using a caching plugin, clear the cache to ensure that the latest changes are reflected.
If these steps do not resolve the issue, please reply to this ticket with any additional details or specific settings you have configured, and a human agent from our support team will assist you further. Thank you for your patience!
Sources:
How to Configure Sitemaps in Rank Math – Best Settings and Tips
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.
Already done that
Check the attached screenshot:
Hello,
Can you 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/
Let us know how it goes. Looking forward to helping you.
Thank you.