Opened 19 years ago
Closed 19 years ago
#4750 closed defect (bug) (fixed)
Category unions and intersections
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | taxonomy category |
| Cc: | Focuses: |
Description
Category unions, intersections, and exclusions are common queries. Let's add some private query vars to the main post query to make this easier. category__in, category__not_in, and category__and accept arrays of category ids. category__in queries posts that have any of the given categories. category__not_in exclude posts in the given categories. category__and queries posts that have all of the given categories. The public "cat" query var is parsed into category__in and category__not_in.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [5873]) Category union and intersection query vars. fixes #4750