WordPress.org

Ready to get started?Download WordPress

Forums

How to show most recent posts from 4 of my categories? (1 post)

  1. WPChina
    Member
    Posted 8 years ago #

    I am trying to include the most recent 5 posts COMBINED from 4 of my categories. I don't care which category they come from, but the last 5 posts total from these 4 categories should show up.

    I know how to show it with only one category, and I use the code below, but what do I need ot change to make categories 7,8, and 9 show up?

    tks!

    <?php $posts = get_posts( "category=6&numberposts=5" ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic