title: $post->ID returning wrong value
body: <p>The ID that should be returned is 3001 instead i keep getting 2896?</p>
  
  <pre><code>$query = new WP_Query(array('post_type' =&gt; 'cv','post_author' =&gt; $user_id, 'post_title' =&gt; $page_user));
  
  if( $query-&gt;have_posts() ){
          $post_id = $post-&gt;ID;
          echo $post_id;
  
  $exists = 1;
  } else {
  $exists = 0;
  } 
  </code></pre>
  
  <p>Any idea how to solve?</p>