WordPress.org

Ready to get started?Download WordPress

Forums

Post disordered (4 posts)

  1. Go7enKs
    Member
    Posted 6 years ago #

    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

  2. gummybear
    Member
    Posted 6 years ago #

    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’ );
    ?>
  3. Go7enKs
    Member
    Posted 6 years ago #

    Do I need a plugin for that?

  4. moshu
    Member
    Posted 6 years ago #

    Nope. You may want to read this:
    http://wordpress.org/support/topic/154622?replies=11
    (it is a "sticky" post on the main page...)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.