[wp-trac] [WordPress Trac] #30631: posts_per_page causing infinite duplicate content
WordPress Trac
noreply at wordpress.org
Mon Dec 8 20:05:27 UTC 2014
#30631: posts_per_page causing infinite duplicate content
--------------------------+-----------------------------
Reporter: firebird75 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.0.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30631>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list