[wp-trac] [WordPress Trac] #57961: custom type posts sitemap pagination 404
WordPress Trac
noreply at wordpress.org
Tue Mar 21 03:54:43 UTC 2023
#57961: custom type posts sitemap pagination 404
--------------------------+-----------------------------
Reporter: tangfou | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: 6.1.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57961>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list