title: Wordpress Meta Query with 3 Conditions
body: <p>I am working on a custom wordpress theme and have a pretty good grip on php &amp; MySQL but less so on wordpress API so I'm wondering if one of you lovely people can help me out. Essentially I have this query:</p>
  
  <pre><code>$args = array(
          'post_type' =&gt; 'any',
          'orderby' =&gt; 'post_date',
          'posts_per_page' =&gt; '3',
          'post_status' =&gt; 'publish',
          'meta_query' =&gt; array(
                  'relation' =&gt; 'OR',
                  array(
                      'key' =&gt; 'catwalk_reports_feature_on_home_page',
                      'value' =&gt; '1',
                      'compare' =&gt; '='
                      ),
                  array(
                      'key' =&gt; 'product_service_feature_on_home_page',
                      'value' =&gt; '1',
                      'compare' =&gt; '='
                      ),
                  array(
                      'key' =&gt; 'wedding_tips_feature_on_home_page',
                      'value' =&gt; '1',
                      'compare' =&gt; '='
                      ),
              ),
      );
  
  
  $the_query = new WP_Query( $args );
  </code></pre>
  
  <p>Which fails !:( </p>
  
  <p>This seems to be because I have 3 arrays, when the query is performed like so:</p>
  
  <pre><code>$args = array(
          'post_type' =&gt; 'any',
          'orderby' =&gt; 'post_date',
          'posts_per_page' =&gt; '3',
          'post_status' =&gt; 'publish',
          'meta_query' =&gt; array(
                  'relation' =&gt; 'OR',
                  array(
                      'key' =&gt; 'catwalk_reports_feature_on_home_page',
                      'value' =&gt; '1',
                      'compare' =&gt; '='
                      ),
                  array(
                      'key' =&gt; 'product_service_feature_on_home_page',
                      'value' =&gt; '1',
                      'compare' =&gt; '='
                      ),
              ),
      );
  
  
  $the_query = new WP_Query( $args );
  </code></pre>
  
  <p>No errors, everything works as expected....</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance;</p>