[wp-trac] [WordPress Trac] #18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'
WordPress Trac
noreply at wordpress.org
Fri Nov 29 17:06:32 UTC 2013
#18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'
------------------------------------------+-----------------------------
Reporter: here | Owner: wonderboymusic
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.8
Component: Query | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch commit needs-codex |
------------------------------------------+-----------------------------
Changes (by wonderboymusic):
* keywords: has-patch commit => has-patch commit needs-codex
Comment:
The new behavior is the correct behavior. 2nd page of results, offset by
5. Both values should be respected for `WP_Query` to properly act as an
abstraction layer. Having to do `pre_get_posts` previously was a hack.
Someone should update the Codex.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18897#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list