-
-
Save traversal/727a30139046e962a426 to your computer and use it in GitHub Desktop.
Shuffle collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($choices = $wf->the->has("sc_fieldset_choices")) : | |
$items = $choices->items(); | |
shuffle( $items ); | |
?> | |
<?php foreach ($items as $choice) : ?> | |
<?php echo $choice->sc_choice_01; ?> | |
<?php endforeach; ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment