/ Published in: PHP
Expand |
Embed | Plain Text
<?php $count; while ( have_posts() ) : the_post(); $count++; $zebra = ($count % 2) ? ' odd' : ' even'; ?> <?php endwhile; // End the loop ?>
You need to login to post a comment.
j4kp07 on 03/23/11
2 people have marked this snippet as a favorite
<?php $count; while ( have_posts() ) : the_post(); $count++; $zebra = ($count % 2) ? ' odd' : ' even'; ?> <?php endwhile; // End the loop ?>
You need to login to post a comment.