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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)