• How do I do this? I’ve been looking around for a few hours and I finally found a way to display the latest post from a specific category:

    <?php $postslist = get_posts(‘cat=3&numberposts=1&p=’.$posts[2]->ID); ?>
    <?php foreach ($postslist as $post) : setup_postdata($post); ?>

    The code above display the latest post.

    How do I make it display the post before that?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get ID of latest 2 posts from specific Category’ is closed to new replies.