title: Wordpress: create a query object from another query object
body: <p>I have the following query:</p>
  
  <pre><code>$tot_posts = new WP_Query(array(... 'posts_per_page' =&gt; -1));
  $tot_posts_arr=(array)$tot_cures;
  $posts_num=count($tot_cures_arr['posts']);
  </code></pre>
  
  <p>Here, I am counting all of the posts that fit certain parameters. Now, I would like to display all of these posts in a paginated way. Currently, I am just querying again like so:</p>
  
  <pre><code>$display_posts = new WP_Query(array(... 'posts_per_page' =&gt; 10, 'paged' =&gt; $page));
  </code></pre>
  
  <p>However, I think that querying twice is slowing down the page load. I am wondering if there is some way for me to turn the original query object ($tot_posts) into the second query object ($display_posts).</p>
  
  <p>Thanks in advance.</p>