Make WordPress Core

#57961 closed defect (bug) (duplicate)

custom type posts sitemap pagination 404

Reported by: tangfou's profile tangfou Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.1.1
Component: Sitemaps Keywords:
Focuses: Cc:

Description

When the number of custom types is greater than 2000 and the default post is less than 2000, wp-sitemap-posts-{custom-type}-2.xml will send a 404 response code.

After my personal analysis, I think that the main query type of sitemap is still post. Since there are more custom types than post, the list is fine, but the response code is wrong.


use
add_filter('wp_sitemaps_max_urls', function () {return 1;});
and modify the setting 'Blog pages show at most'
To verify the above process

Change History (1)

#1 @peterwilsoncc
22 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @tangfou and welcome back to trac!

This is a known and valid issue that is currently being tracked in ticket #51912.

I'm going to close this ticket off as a duplicate, as it allow the discussion to be kept in one location. If you have anything further you wish to add, please do so on the original ticket.

Thanks for the report.

Note: See TracTickets for help on using tickets.