Last active
          September 9, 2025 09:20 
        
      - 
      
- 
        Save wp-seopress/1c10c06888ff7d7bf30d516968c30382 to your computer and use it in GitHub Desktop. 
    Limit the number of posts for the XML index sitemaps
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | add_filter('seopress_sitemaps_index_post_types_query','sp_sitemaps_index_post_types_query', 10, 2); | |
| function sp_sitemaps_index_post_types_query($args, $cpt_key){ | |
| $args = [ | |
| 'posts_per_page' => 10000, | |
| ]; | |
| return $args; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment