I want to add class/id into the wordpress loop, but if I add into the loop, it will have the same class/id of each output of posts from the loop.
I know there are conditional statements to add inside the loop to give the first posts or other posts inside the loop the different class/id. But, I don't know how to do that.
For example: I want to give Box 3, Box 6, Box 9, Box 12, Box 15, and a specific boxs a different class/id from others. Please, see the picture.
This is the link of Image: http:// i49.tinypic.com/1s137c.png
Thanks!
Regards!
I want my out put from the loop look like this: http://pastebin.com/BVkje234
And here is my my code I need to use: http://pastebin.com/7DNVWAC3
I want, Box 3, Box 6, Box 9, Box 12, Box 15 to have the <div class='box-last'>
And Box 1 - Box 15, except above boxs to have <div class='box'>
I use normal loop, and I just want to give the last box of each row to have different class/id from the first two box of the row. Thanks!