I’m not perfect in PHP so I need your help :). I have a WP loop, something like this:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?>
Can anybody tell me how can I select every second li element and add to them a class (“clearfix”, to clear a floating)?
Thank you in advance, - Alex