I think the best is category-wise; I usually use this
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $posts = get_posts('category_name=['the category name(slug)']&orderby=rand&numberposts=1'); foreach($posts as $post) ?>
I think the best is category-wise; I usually use this
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $posts = get_posts('category_name=['the category name(slug)']&orderby=rand&numberposts=1'); foreach($posts as $post) ?>