WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] query posts show latest 3 on the home page (3 posts)

  1. oldbag66
    Member
    Posted 5 years ago #

    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.

  2. oldbag66
    Member
    Posted 5 years ago #

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

  3. oldbag66
    Member
    Posted 5 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic