Exclude posts on sitemap – not working

#639682
  • Resolved Anonymous
    Rank Math free

    Hello,

    I’ve added post IDs of posts I wanted excluded from my sitemap, but the posts are still in the sitemap. Please can you tell me how to fix this? Here’s a screenshot of the IDs I’ve added: https://imgur.com/a/kAdZjSa

    Thanks! 🙂

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

    Thank you for contacting Rank Math and bringing your concern to our attention. We are very sorry for any inconvenience this may have caused you.

    If your sitemap is not updating, the most likely reason can be that your sitemap is heavily cached. You can try the following steps below to see if that works for you.

    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. Apply the following filter code to your site.

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

    Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    Anonymous
    Rank Math free

    Thanks Jeremy I’ll try these options!

    Hello,

    Sure! Let us know how it goes.

    Meanwhile, please don’t hesitate to let us know if you have any other questions.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Thanks will do! 🙂

    Hi there,

    We hope you’re doing well and enjoying Rank Math. We’re just following up with you to see if you have any other questions or concerns that we can assist you with. Or, if your issue has been resolved, please let us know so we can mark this ticket as closed.

    We appreciate your patience and cooperation throughout this process. Your feedback is valuable to us and helps us improve our service.

    Thank you for choosing Rank Math.

    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 ‘Exclude posts on sitemap – not working’ is closed to new replies.