Title: [Plugin: Google XML Sitemaps] Feature Request: Split Sitemaps
Last modified: August 19, 2016

---

# [Plugin: Google XML Sitemaps] Feature Request: Split Sitemaps

 *  [jayant](https://wordpress.org/support/users/jayant/)
 * (@jayant)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-feature-request-split-sitemaps/)
 * How about having the sitemap generator split the sitemap for users having wordpress
   installation with lot of posts with user configurable URLs per sitemap file.

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

 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-feature-request-split-sitemaps/#post-796745)
 * Hi,
 * this would require a lot of refactoring within the plugin. The plugin would have
   to know about all the older sitemap files in case a post is deleted and that 
   makes the whole thing a bit complicated.
 * Do you really have that much posts? A sitemap file is allowed to contain up to
   50.000 posts.
 * Best regards,
 *  Arne
 *  Thread Starter [jayant](https://wordpress.org/support/users/jayant/)
 * (@jayant)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-feature-request-split-sitemaps/#post-796752)
 * thats actually quite easy to achieve…
    we can use a bucket scheme:- suppose i
   have a setting that each sitemap should contain only atmost 2000 posts. we decide
   which sitemap the post goes to based on its post-id: int($post->id/2000)
 * there maybe some posts that dont exist and hence the sitemap may contain less
   than 2000 urls, but that should be fine i think.. as it makes things/ calculations
   easier,
 * when the user changes the setting for the max number of url per sitemap, we rebuild
   all the sitemaps.
 * one of the blogs i have is since 1999 (one of the earliest blogs) and has more
   than 200,000 blog posts.
 * if you need help implementing this feature, i will be happy to help.

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

The topic ‘[Plugin: Google XML Sitemaps] Feature Request: Split Sitemaps’ is closed
to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [jayant](https://wordpress.org/support/users/jayant/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-feature-request-split-sitemaps/#post-796752)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
