title: WordPress Pagination not working Page 2 same as Page 1
body: <p>I'm trying to get WordPress Pagination Working.</p>
  
  <p>I've used different plugins and tried tweaking the code in the pagination.php function to no avail.</p>
  
  <p>No matter what plugin or tweak I've used so far, Pages 2, 3 etc always displays the same set of posts.</p>
  
  <p>Here is the code in the pagination.php</p>
  
  <pre><code>&lt;!-- Previous / More Entries --&gt;        
  &lt;div class="mdnw_pagination"&gt;
  
  &lt;?php if(function_exists('wp_paginate')) :
      wp_paginate();
  ; else : ?&gt;
  &lt;div class="p button"&gt;&lt;?php next_posts_link(__('« Previous Posts', 'skeleton')); ?&gt;&lt;/div&gt;
  &lt;div class="m button"&gt;&lt;?php previous_posts_link(__('Next Posts »', 'skeleton')); ?&gt;&lt;/div&gt;
  &lt;?php endif; ?&gt;
  
  &lt;/div&gt;
  &lt;!-- &lt;/Previous / More Entries --&gt;
  </code></pre>
  
  <p>Here is the code for the blog template for the home page:</p>
  
  <pre><code>&lt;!-- THE POST QUERY --&gt;
                          &lt;?php 
  
                      wp_reset_query();
  
                      global $paged;
                      global $template_file;
                      $cat_string = '';
                      $format = '';
  
                      if( get_post_custom_values('blog_post_count') ) :  
                          $post_array = get_post_custom_values('blog_post_count');
                          $post_count = join(',', $post_array);
                      else : 
                          $post_count = -1;
                      endif;
  
                      /* Get Category Filter */
                      if(get_custom_field('blog_category_filter' )) :
                          $cats = get_custom_field( 'blog_category_filter' );
                          foreach ( $cats as $cat ) {
                              $acats[] = $cat;                
                          }
                          $cat_string = join(',', $acats);                    
                      endif;
  
                      $args=array(
                          'cat'=&gt;$cat_string,            // Query for the cat ID's (because you can't use multiple names or slugs... crazy WP!)
                          'posts_per_page'=&gt;$post_count, // Set a posts per page limit
                          'paged'=&gt;$paged,               // Basic pagination stuff.
                         );
  
                      query_posts($args); ?&gt;
  
                      &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt; 
  
                          &lt;?php get_template_part( 'includes/format', $format ); ?&gt;
  
                      &lt;?php endwhile; else: ?&gt;
  
                          &lt;div class="post"&gt;
                                &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.', 'skeleton') ?&gt;&lt;/p&gt;
                          &lt;/div&gt;&lt;!-- /.post --&gt;
  
                      &lt;?php endif; ?&gt;  
                      &lt;?php get_template_part( 'includes/element', 'pagination' ); ?&gt;                    
                      &lt;?php wp_reset_query(); ?&gt;                  
  
                  &lt;/div&gt;
  </code></pre>
  
  <p>What should I change in either file to get it to show any other content but the first page?</p>
  
  <p>I would change the reading pane settings but the query posts function uses a dynamic value that I'm unaware of.</p>
  
  <p>How or what can I change to get it working?</p>
  
  <p>I tried the solution on this page <a href="https://wordpress.stackexchange.com/questions/105977/wordpress-pagination-not-working-always-showing-first-pages-content" title="WordPress fix">https://wordpress.stackexchange.com/questions/105977/wordpress-pagination-not-working-always-showing-first-pages-content</a> , but to no avail:</p>
  
  <p>Here is what I changed the code to:</p>
  
  <pre><code>&lt;?php 
  
                      wp_reset_query();
  
                      global $paged;
                      global $template_file;
                      $cat_string = '';
                      $format = '';
  
                      if( get_post_custom_values('blog_post_count') ) :  
                          $post_array = get_post_custom_values('blog_post_count');
                          $post_count = join(',', $post_array);
                      else : 
                          $post_count = -1;
                      endif;
  
                      /* Get Category Filter */
                      if(get_custom_field('blog_category_filter' )) :
                          $cats = get_custom_field( 'blog_category_filter' );
                          foreach ( $cats as $cat ) {
                              $acats[] = $cat;                
                          }
                          $cat_string = join(',', $acats);                    
                      endif;
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
                      $args=array(
                          'cat'=&gt;$cat_string,            // Query for the cat ID's (because you can't use multiple names or slugs... crazy WP!)
                          'posts_per_page'=&gt; 9, // Set a posts per page limit
                          'paged'=&gt;$paged,               // Basic pagination stuff.
                         );
  
                      $your_query = new WP_Query( $args ); ?&gt;
  
                      &lt;?php if ( $your_query-&gt;have_posts() ) : while ( $your_query-&gt;have_posts() ) : $your_query-&gt;the_post(); ?&gt;  
  
                          &lt;?php get_template_part( 'includes/format', $format ); ?&gt;
  
                      &lt;?php endwhile; else: ?&gt;
  
                          &lt;div class="post"&gt;
                                &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.', 'skeleton') ?&gt;&lt;/p&gt;
                          &lt;/div&gt;&lt;!-- /.post --&gt;
  
                      &lt;?php endif; ?&gt;  
                      &lt;?php get_template_part( 'includes/element', 'pagination' ); ?&gt;                    
                      &lt;?php wp_reset_query(); ?&gt;  
  </code></pre>