2 columns of 5?
Sure.. i’ll take the example code posted on the link above to demonstrate one way..
First 5:
<ul><li><h2>A random selection of my writing</h2>
<ul>
<?php
$rand_posts = get_posts('numberposts=5&orderby=rand');
foreach( $rand_posts as $post ) : $exc[] = $post->ID;
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</li></ul>
Second 5:
<ul><li><h2>A random selection of my writing</h2>
<ul>
<?php
$rand_posts = get_posts('numberposts=5&orderby=rand&exclude='.implode(',',$exc));
foreach( $rand_posts as $post ) :
?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</li></ul>
The first list creates an exclude list of post IDs as the list is built, the second does the same as the first but loads in the post IDs to exclude, so you get 5 more random posts…
There’s a way you could do without doing 2 loops (using a counter), but the above was the easiest and quickest to type… ??
If you want something done in one loop, post back and i’ll write another example..