Hello,
We apologize for the issue you are facing with the sitemap not generating for pages and products on your client’s website. Thank you for providing detailed information about the steps you’ve already taken.
Here are a few additional troubleshooting steps you can try:
-
Flush Permalinks: Sometimes, simply flushing the permalinks can resolve sitemap issues. Go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button without making any changes.

-
Check Exclusion Settings: Ensure that the pages and products are not excluded from the sitemap settings. Navigate to Rank Math SEO → Sitemap Settings and check if there are any exclusions set for those post types.

-
Check for Custom Canonicals: If you have set custom canonical URLs for your pages or products, they may not appear in the sitemap. Remove any custom canonicals to allow Rank Math to generate them correctly.
-
Review Robots.txt: Ensure that your robots.txt
file is not blocking the sitemap or specific post types. You can check this under Rank Math SEO → General Settings → robots.txt.
-
Check for Plugin Conflicts: Use the Health Check plugin to identify if there are any conflicts with other plugins that might be affecting the sitemap generation.
If you have tried all these steps and the issue persists, please reply to this ticket with any error messages you might be seeing or additional details about your setup, and a human agent from our support team will assist you further.
Thank you for your patience, and we look forward to resolving this issue for you!
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.
Hi Kamil,
This issue can occur for a few reasons, especially when Rank Math fails to register certain post types in the sitemap index. Here are a few steps you can try:
Check if sitemap generation is disabled via filters:
Sometimes themes or other plugins add filters that disable certain sitemaps. You can search your theme’s functions.php or custom plugin files for rank_math/sitemap/exclude_post_type.
Re-save permalinks:
Go to Settings → Permalinks and click Save Changes without making modifications. This refreshes rewrite rules that may affect sitemap generation.
Check for plugin conflicts:
Temporarily deactivate other SEO or caching plugins (like WP Rocket, Yoast, or LiteSpeed Cache) and recheck the sitemap URLs.
Regenerate sitemap manually:
In Rank Math → General Settings → Sitemap Settings, toggle the sitemap feature off, save, and then turn it back on.
Verify post type registration:
Make sure “pages” and “products” are registered correctly and publicly queryable (‘public’ => true in their register_post_type settings).
If none of these help, you can contact Rank Math support with your system info under Rank Math → Status & Tools → System Info so they can review your setup.
Best,
[Kamil]