[wp-hackers] WP_Query bug?

Robert Lusby nanogwp at gmail.com
Wed May 9 21:41:53 UTC 2012


Just noticied that when running a custom WP_Query, setting:
'posts_per_page' => -1 & 'offset' => 1
the offset will get ignored.

Offset works fine if posts_per_page is any value other than -1.

Thoughts? Bug? Or as -1 is meant to return everything, should it stay? 
Expected outcome was to run everything, except the first (e.g. 
everything offset by 1).

Rob.




More information about the wp-hackers mailing list