[wp-trac] [WordPress Trac] #27142: Issues with pagination when offset is set

WordPress Trac noreply at wordpress.org
Tue Feb 18 02:44:13 UTC 2014


#27142: Issues with pagination when offset is set
-------------------------------+------------------------------
 Reporter:  alkinfotech        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.8.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by bcworkz):

 This is expected. Pagination uses the offset parameter of LIMIT to fetch
 the correct posts for any particular page. By explicitly specifying an
 offset, you take away this possibility from the pagination algorithm. From
 http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
 (emboldened text my emphasis):
   ''Warning'': '''Setting the offset parameter''' overrides/ignores the
 paged parameter and '''breaks pagination'''

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27142#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list