Treehouse: Grow your CSS skills. Land your dream job.

WordPress: Show ALL Post Titles from a specific Category

  • # May 26, 2012 at 11:31 am


    I’d like to be able to show all the posts from a single category on one page. I’d like to format the returned data so it shows the page title (with permalink) and the date the article was written.

    I’m using:

    query_posts( array ( 'category_name' => 'The Category Name', 'posts_per_page' => -1 ) );

    provided by

    Unfortunatly, this shows the article name, with permalink and the whole article content. I want to hide the article content.

    Thank you,

    # May 26, 2012 at 11:39 am

    This should do the trick… :)

    # May 26, 2012 at 11:53 am

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.