Opened 10 years ago
Last modified 6 years ago
#30631 new defect (bug)
posts_per_page causing infinite duplicate content
Reported by: | firebird75 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0.1 |
Component: | Canonical | Keywords: | |
Focuses: | Cc: |
Description
While using the posts_per_page in the pre_get_posts, if you set it to -1. It will output all the posts. The issue is that if you use this with the main query on a taxonomy archive page, then it will create unlimited number of subpages with all the same content as the main page :
taxonomy-1/
taxonomy-1/page/2/
taxonomy-1/page/3/
...
taxonomy-1/page/500/
etc...
It is probably not really the expected behavior...
Change History (2)
Note: See
TracTickets for help on using
tickets.
Related: #11694, #28081, #29655.