Alternating Display in Loop
-
Hello,
I’m using a loop to output posts of a certain category. I’m displaying the_title() the_content() and also the_post_thumbnail() in this loop.
I’m styling it in a way that the thumbnail is floated left and the title and content are on the right of the image. I’d like to make the layout more interesting and have the images and text switch sides for each post. So on the even posts the images float left with text on the right and on odd posts the images float right with text on the left. I’m not great with this loop and PHP stuff yet, so I’m not sure how to achieve this.
Anyone have tips for doing this? Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Alternating Display in Loop’ is closed to new replies.