I have one design issue that I want to solve. I've spend 2 days on this and I know that its an easy one...
I want to echo the articles with this order: col-8, col-4, col-4, col-8, col-8,col-4... and so on.
I've made it to echo the articles like this: col-8, col-4, col-8, col-4, col-8, col-4... and so on.
if ($article->id % 2 == 0) { echo 4; } elseif ($article->id % 2 == 1) { echo 8; }
I know that I have to use the loop inside one other loop, but I am stuck.
If you have any ideas, let me know. Thank you!
</div>