[wp-trac] [WordPress Trac] #18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'
WordPress Trac
noreply at wordpress.org
Thu May 14 16:07:51 UTC 2015
#18897: query_posts / WP_query parameter 'offset' should play nicely with 'paged'
------------------------------------------+-----------------------------
Reporter: here | Owner: wonderboymusic
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Query | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch commit needs-codex | Focuses:
------------------------------------------+-----------------------------
Comment (by jadpm):
Has this ticket lost track?
I would really love to see some consistency on this, to be honest. I will
not enter into the discussion on whether the thing is broken or not, and
whether we should work around it or not, but I feel it is somehow
obviously wrong that we can pass a paged parameter to WP_Query different
than 1 and get the posts corresponding to the first page.
Even the linkd Codex page states, after explaining a series of nice
filters messing with the query, that "And now you're done. Pagination
should now work correctly along with your own, custom offset.". So after
that, '''pagination should work correctly with offset'''. In my book, it
means that you need to apply a fix to make it work, so it is broken.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18897#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list