Hello, we apologize for the issue you are facing with your Rank Math sitemap on your website https://rankmath.com/wp-content/uploads/2023/04/An-example-displaying-how-to-validate-a-sitemap-2.png
It seems like you are experiencing an issue where only 3 post sitemaps are visible in the sitemap index, even though you have more than 2000 posts published and indexed by Google. This discrepancy can occur due to custom canonicals in the sitemap.
To ensure that all your posts are included in the sitemap index, please remove any custom canonicals from your posts. Rank Math, by default, includes a self-referencing canonical for all posts set to Index. If a post has a custom canonical, it will not appear in the sitemap.
After removing the custom canonicals from your posts, allow Rank Math to generate the canonical automatically. This should help include all your posts in the sitemap index.
If the issue persists after following these steps, please let us know so we can further assist you. Thank you for bringing this to our attention.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
Working With the News Sitemap in Rank Math » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please follow the steps below:
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 code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how that goes. Looking forward to helping you.
Hello, thank you so much, Jeremy. All post sitemaps are showing just after changing the 200 count. I have applied everything you recommended.
My question is
When will Google crawl the entire sitemap?
And what Google crawler think after seeing so many posts suddenly in the sitemap? Is it bad?
Hello,
Thank you for your patience.
According to Google guidelines, crawling can take anywhere from a few days to a few weeks. The crawling and indexing depend on the authority and crawl budget of the website.
Also, it is not bad if Google sees those posts in your sitemap as it will be helpful for your URLs to be discovered through them.
Looking forward to helping 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.