I am using the Simple Fields plugin on my website and I'd like to do the following;
Let's say I have 10 simple fields on my page. I want to limit it down so the page only displays 2 of these, which are randomly selected each time the page loads. Is this possible? If yes, how do I do that?
Here is my code;
<?php $c = simple_fields_get_post_group_values($post->ID, "Users", true, 2); ?> <?php foreach ($c as $b) : ?> <?php echo wp_get_attachment_image ($b["Image"], "full"); ?> <?php echo $b["Text"] ?> <?php endforeach; ?>