Can we remove out of stock products from sitemap?

#555441
  • Resolved Salam Expert
    Rank Math free

    I have tried different code snippets, but out of stock products are not being removed from the sitemap. Is there any way to exclude out of stock products from the sitemap? These types of products should not be visible in the sitemap.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    You can manually set the products to be “noindex” and it will be excluded from the sitemap.

    In Pro we have the feature to set out of stock products as “noindex”. For that you can set your out-of-stock products to hidden, so Rank Math can set them to noindex and exclude them from your sitemaps.

    You can enable this option in Rank Math > General Settings > WooCommerce:
    https://rankmath.com/kb/general-settings/#noindex-hidden-products

    I hope that helps.

    Thank 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 1 replies (of 1 total)

The ticket ‘Can we remove out of stock products from sitemap?’ is closed to new replies.