WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Ten - how to show posts from a category? (4 posts)

  1. Matt
    Member
    Posted 2 years ago #

    I've tried searching and codex. I've tried the examples on the codex. I've tried using $querystr and just query_posts.

    I'm using a custom template, just need everything from category 70 spat out, one title after another.

  2. Jay
    Member
    Posted 2 years ago #

    query_posts( 'cat=70&posts_per_page=-1' );

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

    See a page of posts. Amend to suit your needs.

  4. Matt
    Member
    Posted 2 years ago #

    both = Internal Server Error

    esmi, I changed the string twentyeleven to twentyten in case that mattered. Same result.

    I can spit out all posts with the following, but I just need that category.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I just need from one category.

Topic Closed

This topic has been closed to new replies.

About this Topic