Title: Paging Problem
Last modified: August 19, 2016

---

# Paging Problem

 *  [Saint Jermaine](https://wordpress.org/support/users/saint-jermaine/)
 * (@saint-jermaine)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/paging-problem-2/)
 * Hi guys, one more thing — I have a self-hosted WordPress blog, and I’m having
   a problem with the paging. Specifically, no matter how many posts I have, the“
   Older Entries” pages show the same 5 posts.
 * Here is the code I’m using to display the blog posts —
 * _[please use backticks or the ‘code’ button to mark the code.
    otherwise the 
   code might get corrupted and become unreadable.]
 *     ```
       <?php query_posts("posts_per_page=5"); ?>
       	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   
       		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
   
       			<h4><a>"><?php the_title(); ?></a></h4>
   
       			<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
   
       			<div class="entry">
       				<?php the_excerpt(); ?>
       			</div>
   
       		</div>
   
       	<?php endwhile; ?>
   
       	<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
   
       	<?php else : ?>
   
       		<h2>Not Found</h2>
   
       	<?php endif; ?>
   
       </div>
       ```
   
 * Can anyone help?
 * Thanks a lot!

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/paging-problem-2/#post-1977666)
 * a: is setting the number of posts in ‘dashboard’ settings’ ‘reading’ not an option?
 * b:
    your code is missing the ‘paged’ parameter in ‘query_posts()’;
 * this might work:
    `<?php query_posts("posts_per_page=5&paged=" . get_query_var('
   paged')); ?>`

Viewing 1 replies (of 1 total)

The topic ‘Paging Problem’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/paging-problem-2/#post-1977666)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
