Rank Math not including the newly published posts in sitemap.

#1104650
  • i am using rank math since a long period. All was going well but since some weak i am facing extreme difficulties in sitemap. i have 321 published posts but rank math only showing 253 posts instead of 321 posts. i have follow all your guidelines and even read out all your articles related to sitemap. i have also check all my plugins by deactivating them one by one to find any code conflict but not found any issue there.

    Even i also have clear the cache both from wp rocket and from server side too. i also roll back to previous version of rank math to show the newly published posts but get no result. Now again i am using the latest version.
    Kindly solve my issue that how can i get the newly publish posts in sitemap.

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

    We apologize for the issue you are facing with Rank Math not including your newly published posts in the sitemap. Thank you for providing detailed information about the steps you’ve already taken to troubleshoot this issue.

    Here are a few additional things you can check:

    1. Sitemap Settings: Ensure that the posts are not excluded from the sitemap settings. You can check this by navigating to Rank Math SEO → Sitemap Settings and looking for any exclusions under the Exclude Posts section.
      Exclude posts and terms in Sitemap settings

    2. Empty Archive Pages: If any of your category or tag archive pages are empty (i.e., they have no posts), they will be excluded from the sitemap by default. You can enable the option to include empty terms in your sitemap settings.
      Include Empty Terms in Rank Math

    3. Caching Issues: Since you’ve already cleared the cache, ensure that your sitemap is not being cached by any server-level caching. You can add the following filter to your theme’s rank-math.php file to disable caching for the sitemap:

      add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    4. Indexing Settings: Make sure that all your posts are set to index in the robots meta tag. You can check this by going to the Advanced tab in the post editing screen of each post.
      set to noindex

    If you’ve checked all these settings and are still experiencing issues, we recommend replying to this ticket with your site URL so that a human agent from our support team can assist you further. They will be able to investigate the issue more thoroughly.

    Thank you for your patience, and we hope to resolve this issue for you soon!

    Sources:
    Why Isn’t My URL Included in the Sitemap? » Rank Math
    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.

    kindly reply me

    i am using rank math since a long period. All was going well but since some weak i am facing extreme difficulties in sitemap. i have 321 published posts but rank math only showing 253 posts instead of 321 posts. i have follow all your guidelines and even read out all your articles related to sitemap. i have also check all my plugins by deactivating them one by one to find any code conflict but not found any issue there.

    Even i also have clear the cache both from wp rocket and from server side too. i also roll back to previous version of rank math to show the newly published posts but get no result. Now again i am using the latest version.
    Kindly solve my issue that how can i get the newly publish posts in sitemap.

    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.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.