title: How to create the pagination correctly?
body: <p>I have this query to retrieve the posts:</p>
  
  <pre><code>&lt;?php 
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  $the_query = new WP_Query(array('category__not_in' =&gt; array(8), 'paged' =&gt; $paged)); ?&gt; 
  </code></pre>
  
  <p>and this pagination:</p>
  
  <pre><code>global $wp_query;
  
  $big = 999999999; // need an unlikely integer
  
  echo paginate_links( array(
      'base' =&gt; str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
      'format' =&gt; '?paged=%#%',
      'current' =&gt; max( 1, get_query_var('paged') ),
      'total' =&gt; $wp_query-&gt;max_num_pages
  ) );
  </code></pre>
  
  <p>copied from: <a href="http://codex.wordpress.org/Function_Reference/paginate_links" rel="nofollow">http://codex.wordpress.org/Function_Reference/paginate_links</a></p>
  
  <p>But it does works, the paginations <code>1 2 3 4 5 6</code> always have the same links (after i click on a page the first time), and the records are not shown correctly....because I have 13 pages (I read it from <code>max_num_pages</code>) of results, but after the second i do not see any other results.</p>
  
  <p>Could someone help me?</p>