[wp-trac] [WordPress Trac] #22299: posts_per_page value in $wp_query does not work in index.php
WordPress Trac
noreply at wordpress.org
Sun Oct 28 04:34:11 UTC 2012
#22299: posts_per_page value in $wp_query does not work in index.php
--------------------------+----------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version:
Severity: normal | Resolution: invalid
Keywords: close |
--------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Pagination is calculated before the template is loaded. This is basically
the same as using query_posts(), but since you are also altering
posts_per_page, then using 'paged' isn't enough, because *total* pages was
calculated against the original, main one.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22299#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list