The Problem

When you post a link to another blogger’s post, a pingback should appear in their comments section. However I noticed that there was no pingback from me. At first I brush it aside thinking the other party’s blog either did not support pingback or refuses my pingback. Then later I realised it can’t be EVERYONE. So I dig further and discover, to my surprise, the theme’s title tag in header.php is giving me the problem.

<title><?php wp_title(''); ?><?php if ( !( is_404() ) && ( is_single() ) or ( is_page() ) or ( is_archive() ) ) { ?><?php _e(' &laquo; '); ?><?php } ?><?php bloginfo('name'); ?></title>

I still can’t figure out why the above code is giving me the problem. I coded it for SEO purpose without the need for a plugin but inadvertently introduce a bug instead. And I had used it for all the themes I ported over. So if you experienced the pingback bug with my themes, please see the solutions as below.

The Solution

1. WP Default theme’s title tag (Non-SEO optimised)
Replace the title tag in header.php with

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

2. Install WP Plugin: Optimal Title (SEO optimised)
Install and activate Optimal Title plugin. Replace the title tag in header.php with

<title><?php optimal_title(); ?> <?php bloginfo('name'); ?></title>

You may also download the new theme files for comparison. Only header.php file need to be fix.


What's Next?

» Share This (Social Bookmarks/Email)
» Subscribe to Feed
» Subscribe to Email
» Leave a Comment

Related Posts:
» Testing of Plugins and Themes on WP 2.2
» Theme Updates for Free WP Themes
» Theme Update: CSS & XHTML Validation

» Newer Post: Add a Technorati Rank Widget in 3 Simple Steps
« Previous Post: Surf Porn Without Getting Caught