Title: next page/posts problem
Last modified: August 19, 2016

---

# next page/posts problem

 *  Resolved [yozz84](https://wordpress.org/support/users/yozz84/)
 * (@yozz84)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/next-pageposts-problem/)
 * in my wp i have “WP Page Numbers” plugin…
 * i’ve paste the code from plugin faq… and its not working… the same is when i 
   had this:
 *     ```
       <p class="bb-t10 bb-fa"><?php next_posts_link('&laquo; Older Entries') ?></p>
       <p class="bb-t10 bb-fc next"><?php previous_posts_link('Newer Entries &raquo;') ?></p>
       ```
   
 * so its not the plugin but something in my template… but i don’t know what…
 * this template show me posts from “www” category… in my wp preferences i have:
   4 posts per pages… in “www” are 7 posts…
 * when i click on second page, the site is changed, but the posts are the same 
   on site…
 * could someone help me with this?
 *     ```
       <?php query_posts('category_name=www'); ?>
                   <?php if (have_posts()) : ?>
                       <?php while (have_posts()) : the_post(); ?>
   
                           <div class="bb-100" id="post-<?php the_ID(); ?>">
   
                               <h4><?php the_title(); ?></h4>                
   
                               <!--  | <?php comments_popup_link('Brak komentarzy', '1 Komentarz', '% Komentarze(y)'); ?> <br /> -->
                               <?php the_content('Czytaj dalej &raquo;'); ?>
                           </div>
   
                       <?php endwhile; ?>
   
                       <div class="bb-t30 nav-entry-pages">
   
                           <div class="bb-t10 bb-fa"><?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?></div>
   
                       </div>
   
                       <?php else : ?>
   
                           <h1>error</h1>
   
                       <?php endif; ?>
   
       </div>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/next-pageposts-problem/#post-1617869)
 * try to change this first line:
    `<?php query_posts('category_name=www'); ?>`
 * to include the ‘paged’ parameter:
 *     ```
       <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
       <?php query_posts('category_name=www&paged=' . $paged); ?>
       ```
   
 * [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)
   
   [http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters](http://codex.wordpress.org/Function_Reference/query_posts#Pagination_Parameters)
 *  Thread Starter [yozz84](https://wordpress.org/support/users/yozz84/)
 * (@yozz84)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/next-pageposts-problem/#post-1617872)
 * thx You very much…
 * i didn’t know that problem is in this line…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘next page/posts problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [yozz84](https://wordpress.org/support/users/yozz84/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/next-pageposts-problem/#post-1617872)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
