[wp-trac] [WordPress Trac] #10549: Sticky not working with query_posts()

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 5 15:17:06 UTC 2009


#10549: Sticky not working with query_posts()
--------------------------+-------------------------------------------------
 Reporter:  kingjeffrey   |       Owner:                     
     Type:  defect (bug)  |      Status:  new                
 Priority:  normal        |   Milestone:  Unassigned         
Component:  General       |     Version:  2.8.1              
 Severity:  normal        |    Keywords:  query_posts, sticky
--------------------------+-------------------------------------------------
 Sticky posts do not always float to the top when using query_posts().

 Things work as expected in this simple case:
 `query_posts('showposts=9');`

 But sticky posts cease to work as soon as you filter by category_name,
 like this:
 query_posts('category_name=portfolio&showposts=9');

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10549>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list