[wp-trac] [WordPress Trac] #31680: get_queried_object on multiple taxonomies

WordPress Trac noreply at wordpress.org
Fri Sep 4 02:38:39 UTC 2015


#31680: get_queried_object on multiple taxonomies
-------------------------+------------------------
 Reporter:  thomask      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Query        |     Version:  4.1.1
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |     Focuses:
-------------------------+------------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Duplicate of #5358.

 >  if multiple taxonomies (or terms) are queried, wp should by default
 return their intersection and sums (by default intersection for
 combination of taxonomies+terms as in this example, and sum for queries
 with multiple terms, e.g. brand=tefal+rowenta)

 This is an interesting idea, which can already be accomplished by passing
 a complex 'tax_query' parameter. I don't think it's directly related to
 your suggestion about `get_queried_object()`.

 > this is bit similar to this ticket:
 https://core.trac.wordpress.org/ticket/5358 but it is only about multiple
 terms in one taxonomy, not multiple taxonomies

 Yes, but the underlying issue (and as you note, the solution) is the same
 in both cases. Let's move discussion over there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31680#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list