Make WordPress Core

Changes between Initial Version and Version 25 of Ticket #9951


Ignore:
Timestamp:
08/16/2010 10:22:39 AM (15 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9951

    • Property Status changed from new to assigned
    • Property Cc westi johnbillion@… willmot simon@… trac@… beau@… added
    • Property Component changed from Taxonomy to Query
    • Property Owner changed from filosofo to MarkJaquith
    • Property Milestone changed from 2.8 to Future Release
    • Property Keywords needs-patch early added
  • Ticket #9951 – Description

    initial v25  
    1 Currently it's not possible to query for multiple custom taxonomy terms using query_posts the same way you can do tag__in, category__in, tag__not_in etc. I propose wp_query is extended to support querying by multiple custom taxonomy terms and also multiple custom taxonomies and terms.
     1Currently it's not possible to query for multiple custom taxonomy terms using query_posts the same way you can do {{{tag__in}}}, {{{category__in}}}, {{{tag__not_in}}} etc. I propose wp_query is extended to support querying by multiple custom taxonomy terms and also multiple custom taxonomies and terms.
    22
    33For example, to get all posts that are in my 'Microsoft' term in the 'company' tax:
    4 
    54
    65{{{
     
    1716}}}
    1817
    19 Basically: [tax]__in, [tax]__not_in and [tax]__slug_in should all work, in conjunction with tag__in etc.
     18Basically: {{{[tax]__in}}}, {{{[tax]__not_in}}} and {{{[tax]__slug_in}}} should all work, in conjunction with {{{tag__in}}} etc.
    2019
    21 I have written a patch that implements this, currently [tax]__in, [tax]__not_in, but [tax]__slug_in will be an easy addition.
     20I have written a patch that implements this, currently {{{[tax]__in}}}, {{{[tax]__not_in}}}, but {{{[tax]__slug_in}}} will be an easy addition.
    2221
    23 As tag__in, category__in and all of those are no different, the patched lines I wrote could replace all those hardcoded statements fairly easily.
     22As {{{tag__in}}}, {{{category__in}}} and all of those are no different, the patched lines I wrote could replace all those hardcoded statements fairly easily.