I have an array which holds a list of colours.
<?php $colours = array("pink", "red", "blue", "green", "yellow", "grey", "cyan"); ?>
I then have a Wordpress loop running to display posts. Is there a way that each post would have a value taken from the array and then the one after would have the other value?
For example:
First post: <div class="pink"></div>
Second post: <div class="red"></div>