Title: Loop syntax
Last modified: August 19, 2016

---

# Loop syntax

 *  Resolved [Yeowza](https://wordpress.org/support/users/yeowza/)
 * (@yeowza)
 * [16 years ago](https://wordpress.org/support/topic/loop-syntax/)
 * Hello guys, I was just curious why this works
 * `backticks`
    <php if(have_posts()) : ><?php while(have_posts()) : the_post();
   > <?php endwhile; > <?php endif; > `backticks`
 * and this doesn’t
 * `backticks`
    <?php if (have_posts()) { while (have_posts()) { the_post(); } }
   > `backticks`

Viewing 1 replies (of 1 total)

 *  Thread Starter [Yeowza](https://wordpress.org/support/users/yeowza/)
 * (@yeowza)
 * [16 years ago](https://wordpress.org/support/topic/loop-syntax/#post-1479880)
 * my bad, stupid error

Viewing 1 replies (of 1 total)

The topic ‘Loop syntax’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Yeowza](https://wordpress.org/support/users/yeowza/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/loop-syntax/#post-1479880)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
