• Resolved oldbag66

    (@oldbag66)


    WordPress allows you to set a number of posts per page, yup, we all know this.

    Ok on the home page i want to alter this so it only shows 3 instead of the 10 i have. i understand you can use “query posts” but i dont understand how.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oldbag66

    (@oldbag66)

    ..well i understand i can alter the php but im not sure on the code to use…!

    Thread Starter oldbag66

    (@oldbag66)

    ok found the answer, for any one else that neeeds to know put this before the loop:

    <?php query_posts('showposts=2'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘query posts show latest 3 on the home page’ is closed to new replies.