Title: Loop returns pages &#8211; not posts
Last modified: August 19, 2016

---

# Loop returns pages – not posts

 *  Resolved [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/loop-returns-pages-not-posts/)
 * Hi, I’m building my first wordpress theme from scratch and have a confusing problem.
   I’ve searched the web for the solution but can’t find.
 * My implementation of the wordpress loop is returning pages as the blog instead
   of the posts. It looks exactly as it should, except the content.
 * I’m building it on my own private dev server, so I can’t give you a url to visit,
   but here is my loop code in case I’ve done something in there:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * edit: interestingly, if I click ‘next page’, it then shows posts. Only the default
   home page shows incorrectly.

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

 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/loop-returns-pages-not-posts/#post-1924116)
 * In the Settings > Reading do you have the home page set to show a static page
   or “Your latest posts”? Just a guess since I can’t see your code.
 *  Thread Starter [robpannell](https://wordpress.org/support/users/robpannell/)
 * (@robpannell)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/loop-returns-pages-not-posts/#post-1924181)
 * Yep – set to static page = home, posts shown on = home.
 * Which is odd as I did not configuring, just installed it and left it.
 * Thanks 🙂

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

The topic ‘Loop returns pages – not posts’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [robpannell](https://wordpress.org/support/users/robpannell/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/loop-returns-pages-not-posts/#post-1924181)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
