[wp-trac] [WordPress Trac] #24351: post__not_in is ignored in WP_Query

WordPress Trac noreply at wordpress.org
Thu May 16 09:33:03 UTC 2013


#24351: post__not_in is ignored in WP_Query
--------------------------+----------------------
 Reporter:  Dukessa       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.5.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by knutsp):

 * keywords:  needs-codex =>
 * severity:  minor => normal


Comment:

 This ticket is closed as invalid, so setting severity and keywords is
 meaningless unless you reopen it.

 I think the codex makes it perfectly clear how to use it, and even says
 explicitly:

 {{{
 //This will NOT work
 $string_variable = '1,2,3';
 $query = new WP_Query( array( 'post__not_in' => array( $string_variable )
 ) );
 }}}

 The codex content is editable.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24351#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list