Title: help with else if statement
Last modified: August 20, 2016

---

# help with else if statement

 *  [mogito](https://wordpress.org/support/users/mogito/)
 * (@mogito)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/help-with-else-if-statement/)
 * Hi there. Hmmm wondering if someone could lend a little help.
 * i have this code displaying one set of code ( with a counter ) if the post is
   equal to 1 and another set if it is not.
 * i need to put another set of code in for if the count reaches 3. I have tried
   putting an elsif statement in but i get many a syntax error.
 * heres the code i have – maybe someone could suggest a better way of doing this…?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

The topic ‘help with else if statement’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mogito](https://wordpress.org/support/users/mogito/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/help-with-else-if-statement/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
