Forums

[resolved] NOT limit posts (7 posts)

  1. sodypop
    Member
    Posted 6 years ago #

    okay, in the options page the setting for show at most makes me select how many posts i want to show. how can i set this to show ALL posts? i want to be able to control how many posts to show per category. for example, on my work stuff i want to show all posts, under my blog i only want to show 4 posts. but i want to set it globally to show all. i am confused on how to do this. help! :-p

    see example here: http://www.eric-powell.com

  2. moshu
    Member
    Posted 6 years ago #

    As it is out of the box WP will show everywhere the same number of posts: on index, in archives (monthly and category) etc.
    If you want to control separately those, you have to use a plugin. Here are two that I know of:
    http://mattread.com/archives/2005/03/custom-query-string-plugin/
    http://rephrase.net/miscellany/05/perpage.phps

  3. sodypop
    Member
    Posted 6 years ago #

    is it just me? i cannot find a download link for the custom query string plugin on that page. it looks like it would do the trick! i just can't figure out where to download it.

  4. moshu
    Member
    Posted 6 years ago #

    No, it's not only you:
    http://mattread.com/archives/2005/11/my-plugins/
    (I didn't know about it)

  5. sodypop
    Member
    Posted 6 years ago #

    i found a solution.

    <?php query_posts('category_name=blog&showposts=4'); ?>

    using query posts you can set how many to show.
    i just set my main prefs for 9999 and that way i can choose per category this way!

  6. moshu
    Member
    Posted 6 years ago #

    When I see settings like "9999" I always get scared, LOL
    Recently I helped to move a blog from blogger to WP and in the moment when we did the import it had about 7,850 posts! (Now they are already over 8,000...) Now imagine visiting that blog - and waiting for download - if they set it to show 9999 posts ;)

  7. moshu
    Member
    Posted 6 years ago #

    Good news, if you want to download the custom query string:
    http://wordpress.org/support/topic/49605

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags