Make WordPress Core

Opened 9 years ago

Last modified 5 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:


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 :

It is probably not really the expected behavior...

Change History (2)

#1 @SergeyBiryukov
9 years ago

  • Component changed from Taxonomy to Canonical

Related: #11694, #28081, #29655.

#2 @tyxla
9 years ago

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

Note: See TracTickets for help on using tickets.