[wp-trac] [WordPress Trac] #9300: WP_Query with posts_per_page and sticky posts

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 2 18:42:25 UTC 2012


#9300: WP_Query with posts_per_page and sticky posts
--------------------------+-----------------------------
 Reporter:  yukataninja   |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  reopened
 Priority:  low           |   Milestone:  Future Release
Component:  Query         |     Version:  3.4
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------
Changes (by ciantic):

 * cc: ciantic@… (added)
 * version:  3.0.4 => 3.4


Comment:

 Reproduces with 3.4 alpha.

 To maintain backwards compatibility there could be `sticky_posts_as_first`
 bool in addition to this `ignore_sticky_posts`.

 It should ideally work when using `cat` also, the stickies does not work
 with `new WP_Query("cat=xx")` at the moment.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9300#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list