WordPress.org

Ready to get started?Download WordPress

Forums

How to display posts from one category on the sidebar? (2 posts)

  1. kelp
    Member
    Posted 7 years ago #

    I have three categories on my WordPress that I want to show the first five posts for separately. How would I list the latest five posts from category?

  2. Alex Cragg
    Member
    Posted 7 years ago #

    look at using
    <?php query_posts(); while(have_posts()) : the_post(); ?>

    and read up here

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags