How do I create a random rotation standard listings
I have a large number of
standard listings. I would like them to rotate at random, similar to a previous post regarding randomizing
featured ads. Appreciate any help you could give in modifying this as well as where i would insert the code
From the post regarding random featured ads:
http://forums.appthemes.com/what-if-...-choose-33137/
"This could be achieved by adding a sort parameter 'orderby' => 'rand' to the query in includes/featured.php"
There were two methods shown
$args = array(
'post_type' => VA_LISTING_PTYPE,
'posts_per_page' => $va_options->featured_per_page,
'paged' => get_query_var( 'page' ),
'orderby' => 'rand'
);
or
$args = array(
'post_type' => VA_LISTING_PTYPE,
'posts_per_page' => VA_MAX_FEATURED,
'orderby' => 'rand'
);
Thanks in advance
tom