Forums

Certain Categories to display all posts (instead of specified default number)?? (2 posts)

  1. Dirt2
    Member
    Posted 2 years ago #

    I was wondering if there's a code (don't want to use plugins please) that will allow my to override the wordpress settings such as 10 being my default for amount of posts to display for pagination, For a specific category I want it to list every single post in that category.

    I've searched a forum and found this:
    http://wordpress.org/support/topic/196804?replies=3
    And I know the answer is somewhere here then:
    http://codex.wordpress.org/Template_Tags/get_posts

    But I tried and without basic knowledge of PHP I have failed.

    If anyone knows it would be great help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try adding the following just before the start of the The Loop:

    <?php query_posts('category_name=Name Here&showposts=-1');?>

Topic Closed

This topic has been closed to new replies.

About this Topic