WordPress.org

Ready to get started?Download WordPress

Forums

How to Limit number of posts on index page (9 posts)

  1. goatboy
    Member
    Posted 7 years ago #

    On my index page I want there to be only the last 10 posts for the entire site. I do not want my index page to be screens upon screens long. So what do I need to change in the loop to limit the number of post that show

  2. Root
    Member
    Posted 7 years ago #

    Its one of the options in admin.

  3. goatboy
    Member
    Posted 7 years ago #

    Thanks it works

  4. amucklow
    Member
    Posted 7 years ago #

    OK BUT - what if you want only 2 posts to display on the home page, but more posts on archive and category pages? I could put the home page posts in a special category 'home', then hide that in the sidebar? I figure there's another way though.

  5. Chris_K
    Member
    Posted 7 years ago #

    Easiest way? Search for the "Custom Query String" plugin. It makes stuff like that a breeze.

  6. MichaelH
    Member
    Posted 7 years ago #

  7. JaneLitte
    Member
    Posted 7 years ago #

    This doesn't seem to be working for me in 2.2.

  8. moshu
    Member
    Posted 7 years ago #

    Try an updated version of it.

  9. JaneLitte
    Member
    Posted 7 years ago #

    No go again for me. I have downloaded and activated 2.7.1 and I still only get 10 posts.

    cat June 2007

Topic Closed

This topic has been closed to new replies.

About this Topic