Make WordPress Core

Opened 13 years ago

Last modified 13 years ago

#16967 closed defect (bug)

Adding cat=-# removes sorting — at Initial Version

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

Description

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 categorynot_in removes the sorting I add to it

Change History (0)

Note: See TracTickets for help on using tickets.