Title: Exclude objects from sitemap
Last modified: April 19, 2022

---

# Exclude objects from sitemap

 *  Resolved [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-objects-from-sitemap/)
 * We developed the [WP Multi Domain](https://woomultidomain.com/) plugin, that 
   helps to sell WooCommerce products across multiple domains. Some of the product
   can be visible only on specific shops.
    Now, the problem is, when using Rank 
   Math SEO, the sitemap includes all products. Unfortunate there is no filter we
   can use to exclude specific objects in the sitemap. Specifically, at file **/
   includes/modules/sitemap/providers/class-post-type.php** at `function get_posts`
   your code run a custom MySQL query, but there is no filter anywhere. Maybe you
   can add one for$posts variable, right after it retrieves the $wpdb results?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Support [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-objects-from-sitemap/#post-15575725)
 * Hello [@tdgu](https://wordpress.org/support/users/tdgu/),
 * Thank you for contacting support.
 * We have plenty of filters to customize the sitemap and all of them are present
   here: [https://rankmath.com/kb/filters-hooks-api-developer/#sitemap](https://rankmath.com/kb/filters-hooks-api-developer/#sitemap)
 * On top of that, we also have a tutorial on how to create a custom sitemap with
   custom links and include it within our automatically generated sitemap: [https://rankmath.com/kb/custom-sitemaps/](https://rankmath.com/kb/custom-sitemaps/)
 * With all of these options, you are able to take ownership of the sitemaps and
   make the necessary adjustments.
 * Don’t hesitate to get in touch if you have any further questions or need our 
   assistance with this.

Viewing 1 replies (of 1 total)

The topic ‘Exclude objects from sitemap’ is closed to new replies.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/exclude-objects-from-sitemap/#post-15575725)
 * Status: resolved