<?php $rand_posts = get_posts('cat=1&numberposts=3&orderby=rand'); foreach( $rand_posts as $post ) : ?> buraya kodunuzu yazın <?php endforeach; ?>