[wp-trac] [WordPress Trac] #13840: $Paged Won't Set On Index When Static Page Is Set
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 11 05:10:48 UTC 2010
#13840: $Paged Won't Set On Index When Static Page Is Set
--------------------------+-------------------------------------------------
Reporter: tehfab1 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Query | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Changes (by nacin):
* cc: dd32, aaroncampbell (added)
* keywords: paged, pagination, $paged, get_query_var('paged') =>
Comment:
Okay, after a long discussion over private IRC chat, I've been able to
come to the following conclusions:
In 3.0, a static front page can be paged, with /page/2, and you get $page
= 2, $paged null.
In 3.0 and 2.9, a static posts page can be paged, with /page/2, and you
get $page null, $paged = 2.
In 2.9, a static front page cannot be paged, with /2, you get a 404, and
with /page/2, you get the static posts page. That'd be a bug, and that was
fixed in #12047.
Thus, you have to be weary of overriding a static front page with your own
query (also documented in #12047 I think), as you'll end up with $page
instead of $paged. That sounds right to me, but I'm also fried, so I'm
going to leave open with a suggested close as a duplicate of #12047 if
correct.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13840#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list