Make WordPress Core

Opened 13 years ago

Last modified 13 years ago

#16967 closed defect (bug)

Adding cat=-# removes sorting — at Version 1

Reported by: jdingman's profile jdingman Owned by: scribu's profile scribu
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Query Keywords:
Focuses: Cc:

Description (last modified by scribu)

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

Change History (1)

#1 @scribu
13 years ago

  • Description modified (diff)
  • Owner set to scribu
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.