[wp-trac] [WordPress Trac] #24351: post__not_in is ignored in WP_Query
WordPress Trac
noreply at wordpress.org
Thu May 16 06:52:20 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: major | Resolution: invalid
Keywords: |
--------------------------+----------------------
Comment (by Dukessa):
Replying to [comment:2 nacin]:
> You need to do one or the other: an array of IDs, or comma-separated
IDs. You're trying to pass an array of comma-separated IDs.
I'm not trying to pass an array of comma-separated IDs. I'm passing a
variable with a string, which is exactly the same one you can manually
write, and it works that way.
How is:
{{{
array(1282,1194,1185)
}}}
different from
{{{
$excludeposts = '1282,1194,1185';
array($excludeposts)
}}}
?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24351#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list