title: Wordpress NOT logged in does not return query posts
body: <p>I'm working on a website and i've created a custom filter method. 
  Every post have 2 custom ACF fields.
  I've set args and query and eveythings fine WHILE i'm logged in ONLY.</p>
  
  <p>If I try to display the posts as a non registered user... it shows nothing.</p>
  
  <p><strong>Problem:</strong> I'm trying to display posts using wp_query and meta_query related between with AND operator and values added dynamic.</p>
  
  <p><strong>Question</strong> Why i can show the posts using the same syntax ONLY when i'm logged in but not when i'm logged out.</p>
  
  <p><strong>Additional infos</strong> I'm using wp_ajax, ACF plugin.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>function filtering_program(){
    $luna = $_POST['data'][0];
    $ziua = $_POST['data'][1];
  
    $args = array(
      'post_type'      =&gt; 'program',
      'orderby'        =&gt; 'date',
      'order'          =&gt; 'DESC',
      'posts_per_page' =&gt; -1,
      'meta_query'     =&gt; array(
          'relation'     =&gt; 'AND',
          array(
            'key'        =&gt; 'ziua',
            'value'      =&gt; $ziua,
            'compare'    =&gt; 'LIKE'
          ),
          array(
            'key'        =&gt; 'luna_anului',
            'value'      =&gt; $luna_number,
            'compare'    =&gt; 'LIKE'
          )
      )
    );
  
    $posts = new WP_Query( $args );
  
    if ( $posts -&gt; have_posts() ) {
  
    }
  
    wp_die();
  }
  add_action('wp_ajax_program_filter', 'filtering_program');
  add_action('wp_ajax_nopriv_program_filter', 'filtering_program');
  </code></pre>
  
  <p>FUNCTIONS PHP ends here</p>
  
  <p>From now on its the js handle and ajax request</p>
  
  <pre><code>$('.dd-program').click(function(){
          $this = $(this);
  
          if($(this).hasClass('options-month')){
              $datas[0] = $(this).parent().find('.selected-program-filter').html();
          }else{
              $datas[1] = $(this).parent().find('.selected-program-filter').html();
          }
  
          var payload = {
              'action': 'program_filter',
              'data': $datas
          };
  
          $.ajax({
              url: loadmore_params.ajaxurl,
              data: payload,
              type: 'POST',
              beforeSend : function ( xhr ) {
                  $('.posts-data .container .flex-grid').addClass('isLoading');
                  $('.posts-data .container .flex-grid').html('&lt;div class="col"&gt;&lt;/div&gt;&lt;div class="col"&gt;&lt;/div&gt;&lt;div class="col"&gt;&lt;/div&gt;&lt;div class="col"&gt;&lt;/div&gt;&lt;div id="loading"&gt;&lt;/div&gt;');
                  $('.posts-load-more').css('display', 'none');
              },
              success : function( data ){
                  console.log(data);
  
                  if( data ) {
                      if($this.data("lang") == "RO"){
                          $('.posts-data .container .flex-grid').html(data.replaceArray(["&gt;Locatie&lt;", "No posts!"], ["&gt;Locație&lt;", "&lt;h3&gt;Nu exista evenimente!&lt;/h3&gt;"]));
                      }else{
                          $('.posts-data .container .flex-grid').html(data.replaceArray(["&gt;Locatie&lt;", "No posts!"], ["&gt;Location&lt;", "&lt;h3&gt;No events!&lt;/h3&gt;"]));
                      }
                  }
              }
          });
      });
  </code></pre>