Ticket #4750 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Category unions and intersections

Reported by: ryan Assigned to: ryan
Priority: normal Milestone: 2.3
Component: General Version: 2.3
Severity: normal Keywords: taxonomy category
Cc:

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

cat__in.diff (5.5 kB) - added by ryan on 08/15/07 00:33:28.

Change History

08/15/07 00:33:28 changed by ryan

  • attachment cat__in.diff added.

08/15/07 22:08:51 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [5873]) Category union and intersection query vars. fixes #4750