I’m trying to figure out whcich is best way to alter query so that image changes everytime page is refreshed.
The query is ordered by ‘rand’ at the moment and the code looks like this:
$settings=array( ‘post_type’ => ‘banner-up’, ‘numberposts’ => 1, ‘orderby’ => ‘rand’ );
if ( have_posts() ) : the_post();
echo ‘<div class=”top banner”>’.$spacing.'</div><!–banner–>’;
I’m pretty bad at PHP and coding overall so would be grateful if anyone could tell me some tips for that what would be the best way to execute an alternating query. Thank you in advance!