Title: styling every other post
Last modified: August 19, 2016

---

# styling every other post

 *  Resolved [webguy262](https://wordpress.org/support/users/webguy262/)
 * (@webguy262)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/styling-every-other-post/)
 * Well I’ve tried several published examples of how to change the styling of every
   Nth post. Nothing is working.
 * I’m setting a var before the loop, inserting a condition inside the loop, and
   incrementing the var at the end of the loop.
 * Can anyone point me to a solution known to work?
 * TIA

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/styling-every-other-post/#post-1904391)
 * can you give more information?
 * for instance, can you post the code of your template ? (please paste the code
   into a [http://wordpress.pastebin.com/](http://wordpress.pastebin.com/) and post
   the link to it here)
 * post a link to your site? (so someone moight be able to check if the extra css
   classes are output properly)
 * post the links to the tutorials you worked with?

Viewing 1 replies (of 1 total)

The topic ‘styling every other post’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/styling-every-other-post/#post-1904391)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
