<?php $args = array( 'posts_per_page' => 1, 'orderby' => 'random' ); $the_query = new WP_Query( $args ); ?>
How to display one random post with WP_Query
Leave a reply
<?php $args = array( 'posts_per_page' => 1, 'orderby' => 'random' ); $the_query = new WP_Query( $args ); ?>