Sitemap is not showing latest published posts

#947114
  • Resolved Lian Smith
    Rank Math free

    Hi

    I was using Yoast from a long time, but heard good reviews about Rank math. So I decided to give it a try, & installed it on my website. I am facing an issue that is weird for me, as it didn’t happened before.

    Whenever I publish a new post on [moved to sensitive data section] It doesn’t appear in sitemap.xml. Since it doesn’t appear in sitemap I can’t check it status in GSC.

    Please help me in this matter as I don’t know how to solve this problem! Also please let this ticket remain open, so that I can clarify further issues!

    Regards!

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

    We apologize for the issue you are facing with your sitemap not showing the latest published posts. This can happen for a few reasons. Here are some steps you can take to troubleshoot and resolve the issue:

    1. Check Sitemap Settings: Ensure that your posts are set to be included in the sitemap. You can do this by navigating to Rank Math SEO → Sitemap Settings and checking the options for each type of post.

    2. Flush Permalinks: Sometimes, flushing permalinks can resolve issues with the sitemap. To do this, go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button, even if you didn’t make any changes.
      Flush permalink settings

    3. Check for Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Ensure that you are using Rank Math’s default canonical settings.

    4. Plugin Conflicts: There might be a conflict with another plugin. You can check for conflicts using the Health Check plugin.

    5. Content Availability: Make sure that the posts you are publishing have content and are not set to private or draft status.

    If you have tried these steps and the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

    I followed & implemented the above mentioned steps, but I am facing the same error. Please assign me a human agent so that I can understand how to solve this problem.

    Hello,

    It seems that you’re currently using Yoast on your website.

    However, you may follow these steps in Rank Math to flush your sitemap cache:

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

    If the issue persists, please check this list for the common reasons why your new URLs are not getting included in your sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Sitemap is not showing latest published posts’ is closed to new replies.