Problem with exclude from sitemap filter

#462036
  • Resolved Jordan Holland
    Rank Math free

    Hello, I have a small blog, some posts I would like to hide from the sitemap, which I did use the filter.

    The point here is that each sitemap has 20 links, but if I omit let’s say 10 of them, then a sitemap will only have 10 links, instead of 20. So seems that RankMath is somehow reserving the space for each post link, even if it’s excluded from the sitemap.

    Is there a way to remove those completely in order to only allowed posts to fill the full space of 20 links?

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

  • There are way more than 60 posts and only the latest few are omited, meanwhile the chunk that should have 20 links, only shows 6

    Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Can you please follow these steps?
    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/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    It doesn’t help

    Hello,

    Kindly apply this filter code to your theme’s functions.php file.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Then, follow step #1 again from the steps my colleague previously shared.

    Let us know how that goes. 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Problem with exclude from sitemap filter’ is closed to new replies.