[wp-trac] [WordPress Trac] #21683: Choose the relationship between the meta_query and what it's pulled into (AND/OR)
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 24 19:00:11 UTC 2012
#21683: Choose the relationship between the meta_query and what it's pulled into
(AND/OR)
-------------------------+-----------------------------
Reporter: sc0ttkclark | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.4.1
Severity: normal | Keywords: dev-feedback
-------------------------+-----------------------------
The use case for this is that I'd like to be able to, much like
meta_query's "relation" option, be able to choose whether or not
'meta_query' itself should be treated like AND or OR in it's WHERE
inclusion.
meta_query's "relation" option is already helpful, letting you treat any
of the meta_query's arrays as OR instead of the default AND.
Adding this new option would provide the ability to treat meta_query as
AND / OR based on the need of the WP_Query lookup.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21683>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list