XML Sitemap Only Shows 23 Posts Instead of 39

#1102030
  • Tao Allen
    Rank Math free

    Hello Rank Math Support,

    My website is https://hdproto.com

    The XML post sitemap (https://hdproto.com/post-sitemap.xml
    ) only lists 23 URLs, but there are 39 published posts.

    I have already tried all common fixes, including:

    Checked “Exclude Posts” – no post IDs are excluded.

    Enabled Include Empty Terms in Categories.

    Verified each post is set to Index in Rank Math.

    Purged/disabled cache and excluded the sitemap from caching.

    No custom canonical URLs.

    Checked robots.txt – no blocking rules.

    Re-saved permalinks and sitemap settings.

    Flushed Rank Math transients, rebuilt index, cleared caches.

    Despite all these steps, the sitemap still does not update to include all 39 posts.
    Please help identify the cause or advise any additional steps to resolve this issue.

    Thank you,
    Allen

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with your XML sitemap not displaying all your published posts. Thank you for providing detailed information about the steps you’ve already taken.

    Here are a few additional things you can check:

    1. Check for Custom Canonicals: Even though you mentioned there are no custom canonical URLs, please double-check that none of your posts have a custom canonical set that might be affecting their inclusion in the sitemap.

    2. Post Status: Ensure that all posts are published and not in draft or pending review status. Only published posts will appear in the sitemap.

    3. Sitemap Settings: Go to Rank Math SEO → Sitemap Settings and ensure that all post types you want to include are checked. Sometimes, specific settings might inadvertently exclude certain post types.

    4. Health Check Plugin: If you haven’t already, consider using the Health Check plugin to check for any plugin conflicts that might be affecting the sitemap generation.

    5. Flush Cache Again: After making any changes, ensure to flush your cache again and recheck the sitemap.

    If you’ve gone through all these steps and the issue persists, it may require a deeper investigation. Please reply to this ticket with any additional details or errors you might be encountering, 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!

    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.

    Tao Allen
    Rank Math free

    Hello,
    Thanks for your follow-up.

    I have double-checked everything you suggested:

    Custom Canonicals – None of my posts have custom canonical URLs set.

    Post Status – All 39 posts are published and public.

    Sitemap Settings – All post types that should be included are checked.

    Health Check – I ran the Health Check & Troubleshooting plugin; no plugin conflicts were found.

    Cache – I flushed LiteSpeed/Rank Math cache multiple times and also purged the server cache.

    Despite all of these checks, the post-sitemap still shows only 23 URLs instead of 39.
    Please escalate this to a human agent for deeper investigation.

    Site URL: https://hdproto.com

    Sitemap URL: https://hdproto.com/sitemap_index.xml

    Thank you for your continued support.

    Best regards,
    Allen

    Hello,

    We’ve checked your post sitemap, and it is already showing 40 URLs (including https://hdproto.com/insights/ since it is your post archive page).

    To avoid this issue, 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/

    Also, head over to your website files /uploads/rankmath/, and delete any XML files from that path.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.