Hello
I want show random post with thumbnail and using this code :
<?php
$rand_posts = get_posts('numberposts=5&orderby=rand');
foreach( $rand_posts as $post ) :
?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(array(150,130)); ?></a>
But all thumb is the same and are from last post.
And now i need to know the RIGHT code for showing thumbnails.
Thanks