Title: Loop / query_posts problems
Last modified: August 19, 2016

---

# Loop / query_posts problems

 *  [brentk](https://wordpress.org/support/users/brentk/)
 * (@brentk)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/loop-query_posts-problems/)
 * I know PHP fairly well, but WordPress, not so much. There are a thousand posts
   on how to make only 1 post appear on the first page, but nothing seems to work
   properly for me. I tried this [plugin](http://coffee2code.com/wp-plugins/custom-post-limits/),
   but it produced similar results that I get from tweaking query_posts.
 * I set “Blog pages show at most” to 5 in WP settings, and I disabled the cache
   plugin. In my index.php, if I put simply:
 * if( $paged > 1 ) query_posts(“offset=1&showposts=5&paged=$paged”);
    else query_posts(‘
   showposts=1’);
 * Then I get the 1st post on the 1st page, and the next 5 posts on the 2nd page,
   but the 3rd page also has posts 2-5, and the 4th page has posts 2-5, and so on.
   What happened to posts 6-11, 12-17, etc.?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [brentk](https://wordpress.org/support/users/brentk/)
 * (@brentk)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/loop-query_posts-problems/#post-897510)
 * Sorry, forgot to mention the version: WP 2.6.3.

Viewing 1 replies (of 1 total)

The topic ‘Loop / query_posts problems’ is closed to new replies.

## Tags

 * [front page](https://wordpress.org/support/topic-tag/front-page/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [brentk](https://wordpress.org/support/users/brentk/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/loop-query_posts-problems/#post-897510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
