Make WordPress Core

Opened 10 years ago

Last modified 6 years ago

#30631 new defect (bug)

posts_per_page causing infinite duplicate content

Reported by: firebird75's profile 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)

#1 @SergeyBiryukov
10 years ago

  • Component changed from Taxonomy to Canonical

Related: #11694, #28081, #29655.

#2 @tyxla
10 years ago

The same applies to all other types of archive pages - year, month, day, author.

Note: See TracTickets for help on using tickets.