[wp-trac] [WordPress Trac] #16967: Adding cat=-# removes sorting

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 25 17:37:05 UTC 2011


#16967: Adding cat=-# removes sorting
--------------------------+-----------------------------
 Reporter:  jdingman      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When adding in cat=-20, it stops sorting

 $my_query = new
 WP_Query('cat=-20&posts_per_page=10&orderby=date&order=DESC');

 when I run it like this:

 $my_query = new WP_Query('posts_per_page=10&orderby=date&order=DESC');

 it works like I expect it will.

 I tested it in the array format as well, and adding category__not_in
 removes the sorting I add to it

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


More information about the wp-trac mailing list