Hello,
We apologize for the issue you are facing with your sitemap. If only a few pages are showing in your sitemap despite having more pages on your site, there are a few things you can check:
-
Check Sitemap Settings: Ensure that all post types and pages are set to be included in the sitemap. You can do this by navigating to Rank Math SEO → Sitemap Settings and verifying that the options for each type of post or taxonomy are enabled.
-
Custom Canonicals: If you have set custom canonical URLs for your posts, those posts may not appear in the sitemap. Rank Math includes a self-referencing canonical by default, so consider removing any custom canonicals to see if that resolves the issue.
-
Content Availability: Make sure that the pages you want to include in the sitemap actually have content. If there are no contents on those pages, they might not be included.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify any potential conflicts.
-
Flush Permalinks: If you haven’t done this yet, try flushing your permalinks by going to Settings → Permalinks in your WordPress admin area and clicking “Save Changes” without making any changes.
If you’ve checked all these points and the issue persists, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
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,
Thanks for contacting Rank Math support. We apologise for any inconvenience this might have caused you.
Please check that the pages that are not appearing in the sitemap are set to index.
Meanwhile, please follow the steps below to see if it 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 doesn’t seem to work, kindly apply the following filter code 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/
Once done, please clear your browser cache and website cache then check again.
Let us know how it goes. We look forward to hearing from you.
Thank you.