• 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)
  • 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

    (@jayant)

    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.