Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Fixing WordPress
    In reply to: Post disordered

    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’ );
    ?>

    You need to open your header.php file. Log into your Administrator section (wp-admin). Go to PRESENTATION > THEME EDITOR. On the RIGHT-HAND side where it says “Autumn etc theme files” and find header.php or just Header and open it.

    Find this line:
    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>

    Change only the word “Home” to “Blog”. Leave the get_settings('home') part alone.

    He asked a question and 10 months later he gets a response! Hahaha

    Forum: Fixing WordPress
    In reply to: Sorting blog posts

    Missylovely: I am having the same problem and this code fixed it for me. My categories page show the correct post order (Descending) but the main page is in Ascending order.

    Go into your admin control panel. Go to PRESENTATION > Theme Editor. Find the home page file for your theme. Usually this file is the index.php or home.php file.

    I would copy and paste the above code and add it after the <?php get_header(); ?> line

Viewing 4 replies - 1 through 4 (of 4 total)