title: Wordpress pagination link only works for first page
body: <p>This is on my main page, in which I want to display N of the latest posts, and have paginated links at the bottom to view the next N posts.</p>
  <pre><code>&lt;?php
      $paged = get_query_var('paged') ? get_query_var('paged') : 1;
      $args = array('post_type' =&gt; 'post', 'posts_per_page' =&gt; 2, 'paged' =&gt; $paged);
      $wp_query = new WP_Query($args);
  
      while ( have_posts() ) : the_post(); ?&gt;
          &lt;h2&gt;&lt;?php the_title() ?&gt;&lt;/h2&gt;
      &lt;?php endwhile; ?&gt;
  
  
      &lt;!-- then the pagination links --&gt;
      &lt;?php previous_posts_link('&amp;larr; Previous'); ?&gt;
      &lt;?php next_posts_link('Next  &amp;rarr;', $wp_query -&gt;max_num_pages); ?&gt;
  </code></pre>
  <p>The home page works fine, displays the first 2 posts : <code>http://localhost:8000/</code></p>
  <p>The first time I click the Next link, it also works fine, and displays the following 2 posts: <code>http://localhost:8000/?paged=2</code></p>
  <p>However if I click it again, I get a &quot;Not found&quot; &quot;looks like nothing was found at this location. Maybe try a search?&quot; screen, even though the URL appears correct (<code>http://localhost:8000/?paged=3</code>)</p>
  <p>Any idea why that could be happening?</p>
  <p>Thank you!</p>