Opened 10 years ago
Last modified 9 years ago
#38308 new feature request
Accept 'meta_query' parameter in `WP_Tax_Query`
| Reported by: | Hrohh | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Taxonomy | Version: | 4.4 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
It would by possible to extend like that?
<?php $args = array( 'post_type' => 'post', 'tax_query' => array( array( 'taxonomy' => 'people', 'field' => 'meta', 'meta_query' => array( array( 'key' => 'map', 'compare' => 'EXIST' ) ) ), ), ); $query = new WP_Query( $args ); ?>
Change History (3)
#1
@
10 years ago
- Component Query → Taxonomy
- Focuses administration removed
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
- Summary wp query and term metadata → Accept 'meta_query' parameter in `WP_Tax_Query`
- Version trunk → 4.4
#3
@
9 years ago
I like this idea, but we'll need to see at least a proof-of-concept patch to move forward with it. There are a number of questions I've got about how queries will be constructed and cacheability - whether we should use IN ( results of a WP_Term_Query ) or a separate JOIN - that will only be clearer once we've got some patches to benchmark.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @Hrohh - This is a very interesting idea. It's more of an enhancement request for
WP_Tax_Querythan forWP_Query, so I'm going to recategorize the ticket as appropriate.