Posts not showing in post-sitemap.xml after August 8

#1099960
  • Alicia
    Rank Math free

    I encountered an issue with my sitemap. After August 8, all new posts I published are not appearing in the post-sitemap.xml. However, these posts have already been indexed by Google, which means they are live and publicly accessible.

    Steps I already tried:
    1. Checked that posts are published (not drafts or scheduled).
    2. Confirmed that posts are set to “index” in Rank Math.
    3. Flushed permalinks
    4. Manually refreshed sitemap.

    Despite this, the new posts still do not appear in the post-sitemap.xml.
    Could you please help me investigate why the sitemap is not updating correctly?

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

    I apologize for the issue you are facing with your sitemap not updating correctly. Thank you for providing the steps you’ve already taken; that helps narrow down the potential causes.

    Here are a few additional things you can check:

    1. Check Sitemap Settings: Ensure that the new posts are not being excluded from the sitemap. Go to Rank Math SEO → Sitemap Settings and verify that the post types you want to include are checked.

    2. Custom Canonicals: If you have set custom canonical URLs for your new posts, they may not appear in the sitemap. Remove any custom canonicals and allow Rank Math to generate them automatically.

    3. Plugin Conflicts: Sometimes, other plugins can interfere with sitemap generation. You can use the Health Check plugin to check for conflicts without affecting your live site.

    4. Caching Issues: Ensure that any caching plugins or server-side caching are cleared, as they might be serving an outdated version of your sitemap.

    5. Check Robots.txt: Make sure that your robots.txt file is not blocking the sitemap or the new posts from being indexed. You can check this in Rank Math SEO → General Settings → robots.txt.

    If you’ve gone through these checks and the issue persists, please reply to this ticket with your site URL so we can investigate further. A human agent from our team will be able to assist you more comprehensively.

    Thank you for your patience!

    Sources:
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » 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.

    Alicia
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    In this case, please 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.

    Let us know how this goes.

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

You must be logged in to reply to this ticket.