Title: Quick question about the loop
Last modified: August 19, 2016

---

# Quick question about the loop

 *  [metabrandon](https://wordpress.org/support/users/metabrandon/)
 * (@metabrandon)
 * [17 years ago](https://wordpress.org/support/topic/quick-question-about-the-loop/)
 * I was just wondering if there’s a built in way to test and see if i’m at the 
   last post in the loop. So I could add class “end” to the list item or something
   like that.
 * Thanks,
    Brandon

Viewing 1 replies (of 1 total)

 *  [RockyMtnHi](https://wordpress.org/support/users/rockymtnhi/)
 * (@rockymtnhi)
 * [17 years ago](https://wordpress.org/support/topic/quick-question-about-the-loop/#post-1083689)
 * You might use the Post Count plugin to return the count then act on it:
    [http://wordpress.org/extend/plugins/post-count/](http://wordpress.org/extend/plugins/post-count/)

Viewing 1 replies (of 1 total)

The topic ‘Quick question about the loop’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [RockyMtnHi](https://wordpress.org/support/users/rockymtnhi/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/quick-question-about-the-loop/#post-1083689)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
