Changes between Initial Version and Version 25 of Ticket #9951
- Timestamp:
- 08/16/2010 10:22:39 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9951
-
Property
Status
changed from
new
toassigned
- Property Cc westi johnbillion@… willmot simon@… trac@… beau@… added
-
Property
Component
changed from
Taxonomy
toQuery
- Property Owner changed from filosofo to MarkJaquith
-
Property
Milestone
changed from
2.8
toFuture Release
- Property Keywords needs-patch early added
-
Property
Status
changed from
-
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_inetc. I propose wp_query is extended to support querying by multiple custom taxonomy terms and also multiple custom taxonomies and terms.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. 2 2 3 3 For example, to get all posts that are in my 'Microsoft' term in the 'company' tax: 4 5 4 6 5 {{{ … … 17 16 }}} 18 17 19 Basically: [tax]__in, [tax]__not_in and [tax]__slug_in should all work, in conjunction with tag__inetc.18 Basically: {{{[tax]__in}}}, {{{[tax]__not_in}}} and {{{[tax]__slug_in}}} should all work, in conjunction with {{{tag__in}}} etc. 20 19 21 I have written a patch that implements this, currently [tax]__in, [tax]__not_in, but [tax]__slug_inwill be an easy addition.20 I have written a patch that implements this, currently {{{[tax]__in}}}, {{{[tax]__not_in}}}, but {{{[tax]__slug_in}}} will be an easy addition. 22 21 23 As tag__in, category__inand all of those are no different, the patched lines I wrote could replace all those hardcoded statements fairly easily.22 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.