WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16967


Ignore:
Timestamp:
03/25/11 17:40:01 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16967

    • Property Owner set to scribu
    • Property Status changed from new to reviewing
  • Ticket #16967 – Description

    initial v1  
    11When adding in cat=-20, it stops sorting 
    22 
     3{{{ 
    34$my_query = new WP_Query('cat=-20&posts_per_page=10&orderby=date&order=DESC'); 
     5}}} 
    46 
    57when I run it like this: 
    68 
     9 
     10{{{ 
    711$my_query = new WP_Query('posts_per_page=10&orderby=date&order=DESC'); 
     12}}} 
     13 
    814 
    915it works like I expect it will. 
    1016 
    11 I tested it in the array format as well, and adding category__not_in removes the sorting I add to it 
     17I tested it in the array format as well, and adding {{{category__not_in}}} removes the sorting I add to it