Using PHP to generate out a list.
I Simply want to set a different class on every fifth entry. (1/5), (4+1)
<li class="<?php the_code();?>"> content </li>
Output would be like this
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="hello"> Content </li>
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="yolo"> Content </li>
<li class="hello"> Content </li>
How can i do this ?
Guess it's pure basic for anyone with php skills, that's not me but i would also be glad to get pointed towards some page that explains this so i can learn it.
To clarify am using Wordpress loop and it contains +100 items and i want to alter class on item 5,10,15,20,25,30,35 etc..