Support » Fixing WordPress » Sticky posts break query_posts – posts_per_page

  • Hey guys!

    I’ve been trying to limit the number of posts displayed on the front page to 3.

    But query_posts( 'posts_per_page=3' ); only limits the number of non-sticky posts. The sticky posts are added to the loop, so if I have 1 sticky post it displays 4 posts on the front page.

    I’ve been trying to mess around with different settings, but can’t seem to figure out how to only show 3 posts. I hope someone can help me?

    Best,
    Asger

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sticky posts break query_posts – posts_per_page’ is closed to new replies.