Title: WordPress Loop &#8211; Styling specific posts
Last modified: August 20, 2016

---

# WordPress Loop – Styling specific posts

 *  [Adam](https://wordpress.org/support/users/cscottrun/)
 * (@cscottrun)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wordpress-loop-styling-specific-posts/)
 * In the loop for the index post – How could I say – if post is sticky, aside or
   what ever do this. else do that.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * (@andrew-bartel)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wordpress-loop-styling-specific-posts/#post-2941779)
 * Check out [Firebug](http://getfirebug.com). Use it to figure out which classes
   you need to style.
 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wordpress-loop-styling-specific-posts/#post-2941782)
 * You can use the post class. If you look at the html output, sticky posts have
   the following:
 * `<div id="post-188" class="post-188 post type-post status-publish format-standard
   sticky hentry category-aciform category-cat-a category-cat-b category-cat-c category-
   sub tag-tag1 tag-tag2 tag-tag3">`
 * The class sticky is in there, so you can use that in your css and make that different.
   
   Check out the twentyten theme and see how they did it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress Loop – Styling specific posts’ is closed to new replies.

## Tags

 * [alteration](https://wordpress.org/support/topic-tag/alteration/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/wordpress-loop-styling-specific-posts/#post-2941782)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
