Forums

Display ALL posts in category? (6 posts)

  1. gorepit
    Member
    Posted 2 years ago #

    http://www.deadandwalking.com/horror-movie-database/

    I would like to display all the posts on one page without having to click on the 'older posts' link. How would I do this?

    Thank you

  2. nando99
    Member
    Posted 2 years ago #

    use this <?php query_posts('posts_per_page=-1');?>

  3. gorepit
    Member
    Posted 2 years ago #

    That's working well, but it's displaying all my posts from all categories. I only want it to display posts from the category itself.

    If you check the link in my first post, you can see that at the bottom my other category posts are displayed there.

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Add the cate=x argument.

    See template tag, query_posts(), for more info.

  5. gorepit
    Member
    Posted 2 years ago #

    Hi,

    I've looked on those pages and i'm still not sure what to do?

    Thanks

  6. nando99
    Member
    Posted 2 years ago #

    sorry 4 the delay - (can we get an email when a reply is made? lol)...

    make a category template specific for the category you want to do this with...

    lets say, your cat is 19 - copy the category.php and rename it category-19.php - in that file add the code I provided... this way it'll only work in that category...

Topic Closed

This topic has been closed to new replies.

About this Topic