Title: Using statements within the_loop
Last modified: August 19, 2016

---

# Using statements within the_loop

 *  [goodonpaper](https://wordpress.org/support/users/goodonpaper/)
 * (@goodonpaper)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/using-statements-within-the_loop/)
 * I’m curious, is something like this possible (pseudocode, obv!):
 * [the_loop]
    if in category 1, don’t display if in category 2 style details if
   in category 3 style details else style details [loop closing statement]
 * Wanting to try something like this to style certain category entries, just wondering
   how I might go about it …

The topic ‘Using statements within the_loop’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [goodonpaper](https://wordpress.org/support/users/goodonpaper/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/using-statements-within-the_loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
