Title: posts_per_page » shows empty posts
Last modified: August 19, 2016

---

# posts_per_page » shows empty posts

 *  [frmars](https://wordpress.org/support/users/frmars/)
 * (@frmars)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/posts_per_page-shows-empty-posts/)
 * Hello again
 * In a column of my theme, I created a loop retrieving 10 paged posts from category
   6.
 *     ```
       <?php query_posts('posts_per_page=10&cat=6&paged='.$paged); ?>
       ```
   
 * Then the usual loop :
 *     ```
       <?php while (have_posts()) : the_post(); ?>
       [bla bla bla]
       ```
   
 * When moving to page 2, 3 etc… and then reaching the end of the posts, Worpress
   does not see that there are no more posts and tries to display all ten of them,
   even though they are empty.
 * See **[screen capture](http://farm5.static.flickr.com/4059/4409890824_48d5f25f47_o.png)**
 * Is that normal ? How am I to tell WP that the post is empty and not display it?

The topic ‘posts_per_page » shows empty posts’ is closed to new replies.

## Tags

 * [empty posts](https://wordpress.org/support/topic-tag/empty-posts/)
 * [posts_per_page](https://wordpress.org/support/topic-tag/posts_per_page/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [frmars](https://wordpress.org/support/users/frmars/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/posts_per_page-shows-empty-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
