title: WordPress Posts from next page?
body: <p>If I have <code>query_posts()</code> construction, which loading 10 posts per page with pagination, how can I load posts from next page? For example: </p>
  
  <p>First page: posts on this page + posts on page 2</p>
  
  <p>Second page: posts on page 2 + posts on page 3
  etc.</p>
  
  <p>My current code:</p>
  
  <pre><code>&lt;?php
      $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1; 
      $params = array( 
          'posts_per_page' =&gt; 10, 
          'category_name' =&gt; 'stati', 
          'paged' =&gt; $current_page ); 
      query_posts($params); 
      $wp_query-&gt;is_archive = true; 
      $wp_query-&gt;is_home = false; while(have_posts()): the_post(); 
  ?&gt; 
  &lt;div class="article-item"&gt;&lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/h2&gt;&lt;/div&gt; 
  &lt;?php endwhile; the_posts_pagination( array('prev_next' =&gt; false));?&gt;
  </code></pre>
  
  <p>I've tried to make query inside query, but it didn't work - the result is an infinite loop which prints only first post (and actually I understand it can't be the right solution, but I don't get which will be right):</p>
  
  <pre><code>&lt;?php
      $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1; 
      $params = array( 
          'posts_per_page' =&gt; 10, 
          'category_name' =&gt; 'stati', 
          'paged' =&gt; $current_page ); 
      query_posts($params); 
      $wp_query-&gt;is_archive = true; 
      $wp_query-&gt;is_home = false; while(have_posts()): the_post(); 
  ?&gt; 
  &lt;div class="article-item"&gt;&lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/h2&gt;&lt;/div&gt; 
      &lt;?php
          $inner_args = array(
              'posts_per_page' =&gt; 10,
              'category_name'       =&gt; 'stati',
              'paged'           =&gt; $current_page + 1);
          $inner_query = new WP_Query($inner_args);
          while ($inner_query-&gt;have_posts()) :
      ?&gt;
      &lt;div class="preview-article-item"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title() ?&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;?php
          endwhile;
      ?&gt;
  &lt;?php endwhile; the_posts_pagination( array('prev_next' =&gt; false));?&gt;
  </code></pre>