When your website means business.

ACF | Type: PHPACF Repeater Random Set

This example is for options, which would perhaps appear in the footer.

$randomquotes = get_field('random_quotes', 'option'); 
$row_count = count($randomquotes); 
$i = rand(0, $row_count - 1); 
echo '<p class="quote">'.$randomquotes[$i]['quote'].'<br>';
echo '<span class="author">– '.$randomquotes[$i]['quote_author'].'</span></p>';
Menu
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Cookies Notice