Title: Remove one sitemap?
Last modified: May 6, 2022

---

# Remove one sitemap?

 *  Resolved [audiowarrior](https://wordpress.org/support/users/zonwarrior/)
 * (@zonwarrior)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/)
 * Hi there,
 * We noticed, that the XML Sitemap is picking up 2 sitemaps for our website.
 * We want to **remove **one of them, how do we do that? Thanks
 * screenshot:
 * > [View post on imgur.com](https://imgur.com/jjccaX9)

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

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15623811)
 * Hi,
 * Slim SEO create sitemaps for each post types. To remove a post type from the 
   sitemap, please see this docs:
 * [https://docs.wpslimseo.com/slim-seo/xml-sitemap/](https://docs.wpslimseo.com/slim-seo/xml-sitemap/)
 *  Thread Starter [audiowarrior](https://wordpress.org/support/users/zonwarrior/)
 * (@zonwarrior)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15623994)
 * Thanks,
 * I’m looking at this too: “If you want to block all posts of a post type from 
   being indexed, use the following snippet:”
 *     ```
       add_filter( 'slim_seo_robots_index', function( $value ) {
           if ( is_singular( 'your_cpt' ) ) {
               return false;
           }
           return $value;
       } );
       ```
   
 * **Question 1**: Do I replace **your_cpt** with the name of my post type?
 * **Question 2**: Will this only noindex that specific post type?
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15625300)
 * > Question 1: Do I replace your_cpt with the name of my post type?
 * Yes, that’s right.
 * > Question 2: Will this only noindex that specific post type?
 * No, it won’t. Excluding CPT from sitemap does not tell search engines to not 
   index them. It simply doesn’t send the post type’s URLs to search engines. If
   search engines can discover posts in another way (by crawling your site), then
   they still can index them.
 * To tell search engines to not index these posts, it’s better to use the robots
   tag: [https://docs.wpslimseo.com/slim-seo/meta-robots-tag/](https://docs.wpslimseo.com/slim-seo/meta-robots-tag/)
 *  Thread Starter [audiowarrior](https://wordpress.org/support/users/zonwarrior/)
 * (@zonwarrior)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15625356)
 * How can I confirm this code is working and noindexing my post type?
 *     ```
       add_filter( 'slim_seo_robots_index', function( $value ) {
           if ( is_singular( 'your_cpt' ) ) {
               return false;
           }
           return $value;
       } );
       ```
   
 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15627609)
 * Hi [@zonwarrior](https://wordpress.org/support/users/zonwarrior/) ,
 * Yes, that snippet is what you need to make your cpt noindex. Don’t forget to 
   change “your_cpt” to your custom post type slug.

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

The topic ‘Remove one sitemap?’ is closed to new replies.

 * ![](https://ps.w.org/slim-seo/assets/icon.svg?rev=2005049)
 * [Slim SEO - A Fast & Automated SEO Plugin For WordPress](https://wordpress.org/plugins/slim-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slim-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slim-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/slim-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slim-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slim-seo/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/remove-one-sitemap/#post-15627609)
 * Status: resolved