Hello,
I apologize for the issue you are facing with your sitemap not displaying pages and posts correctly. To address this problem, please follow these steps:
-
Check Sitemap Source Code: Visit the sitemap URL directly to view the source code. If you see the content in the source code, it indicates that the sitemap is generated correctly.
-
Flush Permalinks: If Google can’t access your sitemap index, you may need to flush permalinks. Go to your WordPress dashboard, navigate to Settings → Permalinks, and click on Save Changes even if you haven’t made any modifications.
-
Clear Cache: Clear your website cache to ensure that any cached versions of the sitemap are updated.
If after following these steps the issue persists, please let us know so we can further assist you. Thank you for bringing this to our attention.
You can also refer to our detailed guide on how to fix sitemap issues for more information.
Best regards.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
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.
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.