If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: blog posts order
July 13, 2011 at 3:20 pm #5016
I’ve searched this forum and the internet and haven’t been able to find solutions to this problem. When I switch to the default WordPress theme my posts will be in the correct order (from newest to oldest), but somehow posts are showing up in reverse order.
I am running the latest WP. Any help would be greatly appreciated.July 13, 2011 at 11:15 pm #48512
You can go in template_blog.php and edit:
$query_string = "cat=".$negative_cats."&paged=$paged";
$query_string = "cat=".$negative_cats."&paged=$paged&orderby=date&order=DESC";
If that doesn’t suit your needs try changing DESC to ASC.July 14, 2011 at 5:42 am #48513
No luck. I tried both ASC and DESC. It’s odd because “Latest News” in the footer shows correctly.July 18, 2011 at 3:14 pm #48514July 19, 2011 at 6:08 am #48515
Please try to deactivate all plugins and see if this solves the problem. Maybe one is messing with the query and doesn’t reset/rewind it afterwards. This would explain the strange post order.July 19, 2011 at 8:31 pm #48516
Yup, I’ve already tried that. Also deleted several plugins. I’ve reuploaded Avisio’s files from scratch and tried the DESC/ASC code. The only thing that has worked is when I try a different theme (like Twenty Ten).
It’s weird, I even tried changing the date of the oldest post to be the newest post – and it’s still in the same order (with the new date showing).July 20, 2011 at 1:47 am #48517
Seems like something messed up your database. I You could try to reset your entire installation (means removing everything and starting without any content at all, the wp reset plugin can help you with this). There has to be a different solution though, maybe Dude has an other answer, I’m out of ideas. This shouldn’t happen when the theme hasn’t been tampered with.August 19, 2011 at 2:06 pm #48518
I figured out what it was without resetting my database. In Avisio options I had selected to exclude a category that didn’t have any posts in it. When I removed the exclude that category everything seemed to work fine.
If someone else runs into this, hope it helps.August 20, 2011 at 6:46 am #48519
The topic ‘Blog posts in reverse order’ is closed to new replies.