title: WP_Query pagination not working
body: <p>i have a problem with wordpress, i have this piece</p>
  
  <pre><code>$paged = 1;
  if ( get_query_var('paged') ) $paged = get_query_var('paged');
  if ( get_query_var('page') ) $paged = get_query_var('page');
  
  $contacts = new \WP_Query('post_type=contact&amp;showposts=10&amp;paged='.$paged);
  
      if($contacts-&gt;have_posts()) {
          echo '&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;First Name&lt;/th&gt;&lt;th&gt;Last Name&lt;/th&gt;&lt;th&gt;Email&lt;/th&gt;&lt;th&gt;Birthday&lt;/th&gt;&lt;/tr&gt;&lt;thead&gt;&lt;tbody&gt;';
          while($contacts-&gt;have_posts()) {
              $contacts-&gt;the_post();
              echo '&lt;tr&gt;';
              echo '&lt;td&gt;'.get_post_meta($contacts-&gt;post-&gt;ID , 'contact_first_name' , true).'&lt;/td&gt;';
              echo '&lt;td&gt;'.get_post_meta($contacts-&gt;post-&gt;ID , 'contact_last_name' , true).'&lt;/td&gt;'; 
              echo '&lt;td&gt;'.get_post_meta($contacts-&gt;post-&gt;ID , 'contact_email' , true).'&lt;/td&gt;';
              echo '&lt;td&gt;'.get_post_meta($contacts-&gt;post-&gt;ID , 'contact_birthday' , true).'&lt;/td&gt;';
              echo '&lt;/tr&gt;';
          }
          echo '&lt;/tbody&gt;&lt;/table&gt;';
  
          if ( get_next_posts_link() || get_previous_posts_link() ) {
              echo '&lt;div class="wp-navigation clearfix"&gt;
              &lt;div class="alignleft"&gt;'.next_posts_link('&amp;laquo; Older Entries').'&lt;/div&gt;
              &lt;div class="alignright"&gt;'.previous_posts_link('Newer Entries &amp;raquo;').'&lt;/div&gt;
              &lt;/div&gt;';
          }
  </code></pre>
  
  <p>the problem is that the pagination is not working, i have tried some solutions like changing the name of $contacts to $wp_query but didn't work, also I changed showposts to posts_per_page and still not working, i think the problem is here: \WP_Query, how can i fix this? the plugin i'm working is on is already working in this way and only this part is giving problems</p>