Try using the following before “if (have posts()..
“
$args = array(
'post_type' => 'post',
'orderby' => 'rand',
'showposts' => '1'
);
query_posts( $args );
Try using the following before “if (have posts()..
“
$args = array(
'post_type' => 'post',
'orderby' => 'rand',
'showposts' => '1'
);
query_posts( $args );