title: Wordpress meta_query OR/AND relations not working
body: <p>I have a search form with multiple options that are taxonomies. When I select all options, or just one, and click search it never returns any record. I have a problem with understanding relations, and how to properly set arrays. </p>
  
  <pre><code>$args = array('post_type' =&gt; array( 'property' ),
      'order'             =&gt;  'DESC',
      'orderby'           =&gt;  'post_date',
      'meta_query' =&gt; array(
          'relation' =&gt; 'AND',
           array(
               array(
                   'key'       =&gt; 'property_address_postal_code',
                   'value'     =&gt; $search,
                   'compare'   =&gt; 'LIKE',
               ),
               array(
                   'key'       =&gt; 'property_address_state',
                   'value'     =&gt; $search,
                   'compare'   =&gt; 'LIKE',
               ),
               array(
                  'key'       =&gt; 'property_location',
                  'value'     =&gt; $search,
                  'compare'   =&gt; 'LIKE',
              ),
          ),
          array(
              'relation' =&gt; 'OR',
              array(
                  'relation' =&gt; 'AND',
                  array(
                      'key'       =&gt; 'property_price',
                      'value'     =&gt; array($_GET['min-price'],$_GET['max-price']),
                      'type'    =&gt; 'numeric',
                      'compare'   =&gt; 'BETWEEN',
                  ),
              ),
              array(
                  'relation' =&gt; 'AND',
                  array(
                      'key'       =&gt; 'property_price',
                      'value'     =&gt; array($_GET['min-price'],$_GET['max-price']),
                      'type'    =&gt; 'numeric',
                      'compare'   =&gt; 'BETWEEN',
                  ),
              ),
          )
      )
  );
  </code></pre>