Support » Fixing WordPress » 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, 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)
Viewing 1 replies (of 1 total)
  • The topic ‘Loop / query_posts problems’ is closed to new replies.