WordPress.org

Forums

Changing the reading options (5 posts)

  1. somepennguy
    Member
    Posted 8 years ago #

    I would like to have one post on my main page, but all of them in the archives. Currently, then I make a change to the dashboard, it makes global changes.

  2. Glenn Ansley
    Member
    Posted 8 years ago #

  3. somepennguy
    Member
    Posted 8 years ago #

    Well, I was able to do this. I just changed the first line of the index.php to

    <?php
    get_header();
    query_posts('posts_per_page=1'); //returns only the front page
    ?>

    Then set the reading options to 1,000,000. It forces the main page to keep one post, while the rest inherit the million ;)

    http://ifelse.co.uk/archives/2005/04/10/make-wp-show-only-one-post-on-the-front-page/

  4. Glenn Ansley
    Member
    Posted 8 years ago #

    Interesting... so it work?

  5. rudolf45
    Member
    Posted 8 years ago #

    There is a plugin:
    http://mattread.com/projects/wp-plugins/custom-query-string-plugin/
    and it lets you define different number of posts for everything... although I have no idea whether it works with 2.1.x

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.