[wp-trac] [WordPress Trac] #26833: Using WP_Query with offset and menu_order

WordPress Trac noreply at wordpress.org
Thu Jan 16 15:37:11 UTC 2014


#26833: Using WP_Query with offset and menu_order
-------------------------------+------------------------------
 Reporter:  jacksouthernweb    |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Query              |     Version:  3.8
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by jacksouthernweb):

 I did mean
 {{{
 'orderby' => 'menu_order'
 }}}
 but that is what I had in my code, just a typo in the message. I've found
 that if I changed
 {{{
 'showposts' => -1
 }}}
 to
 {{{
 'showposts' => 100 // any large number to accommodate the posts in this
 specific Post Type
 }}}
 then the the query respects the offset argument and outputs the posts
 correctly. Again, not sure if this would be considered a bug but I still
 don't see why it wouldn't respect the offset.

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


More information about the wp-trac mailing list