Hello,
I apologize for the issue you are facing with your sitemap.xml file not showing all your posts. This can indeed impact your keyword rankings.
To address this problem, you can follow these steps:
-
Check if Your Sitemap is Accessible: You can use the httpstatus.io tool to check if your sitemap is accessible. Enter your sitemap URL and verify the status to identify any issues preventing Googlebot from accessing it.
-
Ensure the Sitemap is Located in the Root Folder: Make sure that your sitemap is correctly located in the root folder of your WordPress installation. It should be in the format https://yourdomainname.com/sitemap_index.xml
.
-
Validate Your Sitemap: Validate your sitemap using the Validate XML Sitemap tool to ensure it is correctly configured.
If these steps do not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this to our attention. Your patience is appreciated as we work to resolve this issue and improve your site’s performance.
Best regards.
Sources:
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
I’ve done this but it still not resolved the issue
Hello,
In this case, please follow these steps to flush your sitemap cache:
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. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/**
* 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/
If the issue persists, please refer to our guide here for the common reasons why a URL is not getting included in the sitemap:
https://rankmath.com/kb/url-not-in-sitemap/
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.