WordPress.org

Support

Support » How-To and Troubleshooting » random posts, exclude recent

random posts, exclude recent

  • 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

  • The topic ‘random posts, exclude recent’ is closed to new replies.