Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#57961 closed defect (bug) (duplicate)

custom type posts sitemap pagination 404

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

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
3 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

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.