[wp-trac] Re: [WordPress Trac] #7544: Multiple Category Handling
Wrong
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 20 02:35:23 GMT 2008
#7544: Multiple Category Handling Wrong
-----------------------------------------------------------------+----------
Reporter: zackdesign | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone: 2.6.2
Component: General | Version: 2.6.1
Severity: trivial | Resolution: invalid
Keywords: category, query_posts, categories, multiple, select |
-----------------------------------------------------------------+----------
Changes (by zackdesign):
* status: new => closed
* resolution: => invalid
* severity: major => trivial
Comment:
Replying to [comment:2 ryan]:
> What's in $sql? category!__in accepts an array of category IDs. If you
want to do intersections, use category!__and.
$sql was a constantly changing text string modeled after:
http://codex.wordpress.org/Template_Tags/query_posts#Category_Parameters
It would appear that this documentation is misleading. I just tried using
a normal array and it worked perfectly!
--
Ticket URL: <http://trac.wordpress.org/ticket/7544#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list