Title: Post Order..
Last modified: August 19, 2016

---

# Post Order..

 *  [smc9](https://wordpress.org/support/users/smc9/)
 * (@smc9)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/post-order-4-2/)
 * 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)

 *  [scribblerguy](https://wordpress.org/support/users/scribblerguy/)
 * (@scribblerguy)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/post-order-4-2/#post-767641)
 * > 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](https://wordpress.org/support/users/smc9/)
 * (@smc9)
 * [17 years, 12 months ago](https://wordpress.org/support/topic/post-order-4-2/#post-767663)
 * 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](https://wordpress.org/support/users/islandman75/)
 * (@islandman75)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/post-order-4-2/#post-768103)
 * 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.

## Tags

 * [newest](https://wordpress.org/support/topic-tag/newest/)
 * [order](https://wordpress.org/support/topic-tag/order/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [recent](https://wordpress.org/support/topic-tag/recent/)

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
