• I think I’m going blind, because I cannot find the answer to this and yet it seems fairly simple. In my sidebar, I want to make a “Photography” sub-header, then underneath it list all the titles of the posts within the “Photography” category. Is there a way to do this? Thanks. ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • any1?

    help i need that too ?? im beggin, please ??

    <?php
    $photog_posts = get_posts("category=24&numberposts=-1"); foreach($photog_posts as $post) : setup_postdata($post);
    ?>

    I think it should be single quotes around the category and numberposts statement like this:

    <?php
    $photog_posts = get_posts('category=24&numberposts=-1'); foreach($photog_posts as $post) : setup_postdata($post);
    ?>

    Try that. That’s what is working for me.

    On another note, is there a way to reverse the order of the list? from oldest to newest?

    Lisa B.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘List post titles in a certain category’ is closed to new replies.