Title: posts in wrong order
Last modified: August 19, 2016

---

# posts in wrong order

 *  [walter-wright](https://wordpress.org/support/users/walter-wright/)
 * (@walter-wright)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/)
 * ipowerweb restored my account from backup
 * my WordPress site is almost back up and running
    BUT the posts are coming up 
   sorted by ID and not by date the latest entries go to the bottom of the list
 * how can i reset the posts come up by date?

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

 *  [Kalon](https://wordpress.org/support/users/kalon/)
 * (@kalon)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/#post-764085)
 * Lol the wrong order… depends how you see it.
 * Your situation is strange;
 * Normally, sorted by id means that they are sorted by date; each new post has 
   an ID one digit higher than the last.
 * Make sure your loop in the index.php is set up correctly (or to how you want 
   it). You will find a good guide to that [ here ](http://codex.wordpress.org/The_Loop_in_Action).
 * And make sure on this page of your blog **wp-admin/options-reading.php** your
   front page is set to display the latest posts.
 * Hope I helped.
    Kalon.
 *  Thread Starter [walter-wright](https://wordpress.org/support/users/walter-wright/)
 * (@walter-wright)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/#post-764149)
 * i would the latest post to appear at the top of my front page
    it doesn’t it 
   is the last post retrieved by the loop
 * the index.php loop looks fine
 * i tried the classic theme and it did the same thing ???
 * the id on the manage posts page seems to determine the order no matter what the
   date and time posted say !
 * this is not the default setting
    how can i set it back ???
 * – walter
 *  [dodge107](https://wordpress.org/support/users/dodge107/)
 * (@dodge107)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/#post-764365)
 * I have the same problem! I restored a backup of a working live site on to my 
   dev server and the posts are in the order as if selected strait out of the DB.
 * I am using wp_query() to get the records…. some thing missing from PHP?
 *  Thread Starter [walter-wright](https://wordpress.org/support/users/walter-wright/)
 * (@walter-wright)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/#post-764448)
 * Turns out it the database was not updated along with WordPress.
 * After updating the database it started working properly.

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

The topic ‘posts in wrong order’ is closed to new replies.

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [walter-wright](https://wordpress.org/support/users/walter-wright/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/posts-in-wrong-order/#post-764448)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
