random posts, exclude recent (1 post)

  1. jcyyap
    Posted 4 years ago #

    Hello guys,

    I have the random posts function in one of my sidebars:

    <?php $posts = get_posts('orderby=rand&numberposts=4'); foreach($posts as $post) { ?>

    I have another sidebar right next to it that displays 4 of my latest posts. Is there a way to exclude random posts from displaying some of the latest posts?

    Thanks guys.

    Much appreciated

Topic Closed

This topic has been closed to new replies.

About this Topic