• I know this has been covered many times but i need specific help with the post order on my site.

    I want the newest post first.

    I modified the index.php of my theme to change the post order , but rather than change the whole post order, it has just changed some.

    so if you could help out it’d be great.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I want the newest post first.

    That is the normal default order. But, there is a bug in a version of MySQL (5.0.51, I think) that is messing up the ordering of posts.

    To check, create a new post and change the date to some day before your most recent post. If things are working correctly, this back-dated post should not appear first.

    Then, temporarily switch to a default theme, if the order is still screwed up (back-dated post is first), then it is probably the MySQL bug. If the order is okay, then your theme’s file has been messed up. Replace your theme’s index.php file with a fresh copy.

    Thread Starter smc9

    (@smc9)

    thanks alot, i tried all that.

    in the end i put thie piece of code;

    <?php the_date(”,'<h2>’,'</h2>’); ?>

    from the default profile’s index.php into the new templates index.php just under the first few lines where it mentions posts and it works A. Ok

    Thanks for your help

    islandman75

    (@islandman75)

    Hi, I want the newest as well, but it works only if the newest is a post, doesn’t work if the newest thing is a comment in an old post…
    I would like to have shown the post (old) with newest comment: is possible to do this?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Order..’ is closed to new replies.