Ready to get started?Download WordPress


[resolved] control # of entries on archive pages (2 posts)

  1. scormeny
    Posted 6 years ago #

    I'm working on a "thought for the day" site where I want only a single post, today's, on the front page of the site.

    However, on all archive pages, I want to have many posts listed per page.

    I feel kinda silly that I can't figure this out; is there an easy way to have only one post show on the front page of the site, but multiple posts on the archive pages?

    Thank you very much!

  2. scormeny
    Posted 6 years ago #

    I believe I just answered my own question here.

    On the "Options -> Reading" administrative panel, I set "Show at most X Pages" to ten, so that my archives pages have up to 10 entries on them.

    Then, in index.php, just prior to the loop, I entered:

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

Topic Closed

This topic has been closed to new replies.

About this Topic