Hey guys! I need your help. Since yesterday, for no particular reason, my posts are all "upside down", meaning that the oldest is in the front page and the newest are in the last page. They are reversed. What happened? How can I fix this?
Thanks
Hey guys! I need your help. Since yesterday, for no particular reason, my posts are all "upside down", meaning that the oldest is in the front page and the newest are in the last page. They are reversed. What happened? How can I fix this?
Thanks
I have this problem if I try to hide any category from appearing on the main page. If I show everything, then it's fine.
Anyway, you can try this. Add the following code into the top of your header file.
<?php
/*
Plugin Name: 123 No Group By ID
Plugin URI:
Description: Changes the GROUP BY id in GROUP BY post_date (Problem from MySQL 5.0.51).
Author: Ingo Henze
Version: 0.10
Author URI: http://putzlowitsch.de/
*/
// GROUP BY auswerten
function plw123ngb_posts_groupby( $groupby ) {
if( preg_match( “/(|[ ,.])id(|[ ,])/i”, $groupby ) )
$groupby = ‘post_date’;
return $groupby;
}
add_filter( ‘posts_groupby’, ‘plw123ngb_posts_groupby’ );
?>Do I need a plugin for that?
Nope. You may want to read this:
http://wordpress.org/support/topic/154622?replies=11
(it is a "sticky" post on the main page...)
This topic has been closed to new replies.