gummybear
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post disorderedI 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’ ); ?>Forum: Fixing WordPress
In reply to: How to change name of home pageYou 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.Forum: Fixing WordPress
In reply to: How to get rid of <p> tag on content?He asked a question and 10 months later he gets a response! Hahaha
Forum: Fixing WordPress
In reply to: Sorting blog postsMissylovely: 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