I know that I can display 4 random posts by doing something like:
get_posts('orderby=rand&numberposts=4');
What I’m trying to achieve is starting with a random item, but then showing the next 3 posts that are in chronological order.
I’m thinking something along the lines of this:
$posts = get_posts('orderby=rand&numberposts=1');
foreach($posts as $post) {
the_title();
//get next 3 chronological posts and loop
}
I guess I need to use something like the ‘offset’ parameter, but with a post id instead of a position?