[wp-trac] [WordPress Trac] #64044: Request to change the limit of each sitemap to 1000 urls instead of 2000 urls as current

WordPress Trac noreply at wordpress.org
Thu Sep 25 18:53:32 UTC 2025


#64044: Request to change the limit of each sitemap to 1000 urls instead of 2000
urls as current
-------------------------+-----------------------------------------------
 Reporter:  phanduynam   |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Sitemaps     |     Version:  6.8.2
 Severity:  major        |  Resolution:  invalid
 Keywords:               |     Focuses:  sustainability, coding-standards
-------------------------+-----------------------------------------------

Comment (by sajjad67):

 @phanduynam in your case, here is a small snippet to change based on your
 requirements.

 {{{
 add_filter( 'wp_sitemaps_max_urls', function( $max_urls, $object_type ) {
     return 1000; // change here how much you want.
 }, 10 , 2 );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64044#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list