WordPress Pingback is not working

March 31st, 2011 Category: WordPress

It seems that a few others also have the problem that pingbacks of a WordPress installation are not working.

In my case it was caused by Googles mod_pagespeed plugin for Apache. I thought this is a nice plugin, but it seems it causes to much problems with WordPress (second time here for me). So I decided to no longer use this plugin.

Useful link:

Enable WordPress Auto-Login

March 30th, 2011 Category: WordPress

You may also think that loggin in every time you want to access the admin area of one of your WordPress blogs is quite annoying. But there is a quick way to enable the auto-login for WordPress. It’s shown below.

Add the following lines of code to the functions.php in theme directory:

function auto_login() {
  if (!is_user_logged_in()) {
  //determine WordPress user account to impersonate
  $user_login = 'guest';
 //get user's ID
  $user = get_userdatabylogin($user_login);
  $user_id = $user->ID;
  //login
  wp_set_current_user($user_id, $user_login);
  wp_set_auth_cookie($user_id);
  do_action('wp_login', $user_login);
  }
}
add_action('init', 'auto_login');

Source: lbsharp.com

Disable WordPress Admin Bar

March 30th, 2011 Category: WordPress

WordPress 3.1 comes with a new feature called “admin bar”. The admin bar is displayed whenever you are logged in as admin on regular pages on your blog. I don’t like the bar because it doesn’t make so much sense for me and I think it slows down page display.

Furtunatly there is an eays way to disable the admin bar. The only thing you have to do is to add one line of code into the functions.php of your theme:

add_filter( 'show_admin_bar', '__return_false' );

And the admin bar disappears, very nice.

Source: German WordPress Blog