Sitemap not generating for pages and products

#1118407
  • Hello,

    I’m experiencing an issue on my client’s website ciachoodporna.pl — the sitemaps for pages and products are not being generated or displayed in the main sitemap index.

    Here’s what I’ve tried so far:

    Deactivated and reactivated the Rank Math plugin

    Cleared transients and cache

    Checked sitemap settings (all post types are enabled)

    Cleared both site and server cache

    Despite that, the sitemaps for pages (page-sitemap.xml) and products (product-sitemap.xml) are still missing and not included in the sitemap_index.xml.

    Could you please help me diagnose the issue and suggest a possible solution?

    Thank you in advance for your help!
    Best regards,
    Kamil Kaźmierczak

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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:

    1. 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.
      Flush Permalink Settings

    2. 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.
      Exclude Posts and Terms in Sitemap Settings

    3. 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.

    4. 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.

    5. 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]

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.