Odd/even class on article tag

Try this (untested):

<?php $zebra = (++$j % 2 == 0) ? 'evenpost' : 'oddpost'; ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix span4 ' . $zebra); ?> role="article">

You just need to place theodd/even class into a variable before passing it to post_class.

Leave a Comment

techhipbettruvabetnorabahisbahis forumueduseduseduseduseduseduseduedusedusedu