Return to Snippet

Revision: 43416
at March 23, 2011 16:01 by j4kp07


Initial Code
<?php $count; while ( have_posts() ) : the_post(); $count++; $zebra = ($count % 2) ? ' odd' : ' even'; ?>

<?php endwhile; // End the loop ?>

Initial URL

                                

Initial Description

                                

Initial Title
Zebra Stripe Counting PHP shorthand

Initial Tags

                                

Initial Language
PHP