• 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)
  • 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 .

    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

    (@walter-wright)

    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

    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

    (@walter-wright)

    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.