title: Wordpress the_post() break duplicate posts
body: <p>I have array with duplicated post ids </p>
  
  <pre><code>array = [71, 82, 71, 86, 82]
  </code></pre>
  
  <p>If I will do simple wordpress loop like</p>
  
  <pre><code>while( $query-&gt;have_posts() ) : $query-&gt;the_post();
  </code></pre>
  
  <p>I will see posts with 71, 82, 86 ids
  How it possible to show all posts with ids in array array = [71, 82, 71, 86, 82]</p>