adambrown.info.

Lastly for this post, I will show you how I used alternating classes to achieve the layout of my archive and search results pages. This is very useful if you wish to have alternating styles on posts – some people like to have the background colour change, or have the post title switch from left to right aligned. Anything you want.

in my case, I wanted the archive to be displayed in a two column style and this was just about the only means I could figure out to do this as the Loop usually just spews out the posts as it likes.

First, add this to the Funtions.php
{codetype=html}$odd_or_even = ‘odd’;{/code}

Then you need these two separate lines to be placed in or around the loop

{codetype=html}

Leave a Reply