Nested meta_query with multiple relation keys

I am curious whether WordPress is able to run nested meta_query, with each having different relation keys? As of WordPress 3.0, tax_query is able to perform this function; I’m wondering whether this has an equivalent with meta_query. $results = query_posts( array( ‘post_type’ => ‘event_id’, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘relation’ => ‘OR’, array( … Read more

Using meta query (‘meta_query’) with a search query (‘s’)

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field. My current query: $args = array( ‘post_type’ => ‘post’, ‘s’ => $query, ‘meta_query’ => array( array( ‘key’ => ‘speel’, ‘value’ => $query, ‘compare’ => ‘LIKE’ ) ) ); $search = new WP_Query( $args ) … … Read more