Looking for views on this amendment I am looking to make on my homepage to change the layout of specific posts. For example:
I have 10 posts in a foreach, the basic layout of that is easy enough.
<?php foreach ($posts as $post): ?>
...
<?PHP endforeach ?>
What I want to do within that is select say the first item, style it in a specific way, then select the 2nd and 3rd items, style them in a different way and so on.
So many ways from another loop, setting a key and counting.
Wondering how others would do this as a best practice perhaps.
Thanks