I read some research recently which seems to show that keywords matter to search engines in your site’s “title” tag. Not only that, but position matters. Preferably your page title should precede your site title.
Unfortunately Wordpress is coded to make that sort of ugly. If you simply reverse the wp_title and wp_bloginfo(’name’) calls, you get ugliness in two ways. If what you want is “keyword - sitename”, then you have to live with the default title for your site looking like “- sitename”. Ugly. Then if you are on a titled page, you get “» keyword - sitename”. I don’t know about you, but I think that’s ugly too.
So, enjoy my tiny little Wordpress plugin. It will strip out the leading “»” and will not put the dash in unless there is something preceding it. I’m no PHP god, but that was both easy and fun, due to the “hook” system Wordpress implements so nicely. You’ll still have to reorder your themes to have “wp_title” listed before the sitename, but at least it will look prettier now.
Download: wp-title-suffix.zip
Technorati Tags: wordpress2, wordpress, plugins, seo
















25 responses so far ↓
1 BirDesign // Apr 19, 2006 at 11:10 pm
タイトルをサイト名の前に表示…
WordPressを使ったサイトのタイトルは、かなりの確率で「サイト名 » 記事のタイトル」となっています。実はこれ、検索エンジン経由の訪問者を逃す、原因のひとつとなるのです。
Yahoo…
2 [WordPress] title suffix plugin « Tristeza On Guitar // May 16, 2006 at 6:21 pm
[…] ダウンロード http://coderseye.com/2006/wordpress-title-suffix-plugin.html […]
3 Tchakra // Jun 22, 2006 at 2:35 pm
Nice plugin! thanks for the effort.
4 William // Jul 24, 2006 at 11:59 am
You may want to look into this alternative. This is what I use on my blog.
The front page: “Blog title”
Category page: “Category – Blog title
Archive page: “Date – Blog title”
Post page: “Post title”
Code can be found at :
http://www.h05t.com/seo/another-approach-to-wordpress-title-h1-and-link-structure-seo
5 パンくずリストを表示 | Blog Archive | Swirling Mist // Jul 31, 2006 at 6:32 am
[…] Wordpress title suffix plugin を使っていると、表記が変になります。記事名の最後にもセパレーターが付いてしまいました。 […]
6 Ar2r // Sep 17, 2006 at 10:16 pm
I cant download file. it writes that its not found.
help
7 RIGHT // Oct 30, 2006 at 11:09 am
Can’t download file too. A 404.
8 Bruce // Oct 30, 2006 at 10:35 pm
Download link is fixed.
9 RIGHT // Oct 31, 2006 at 4:07 am
Thanks for fixing it & for this little but great & usefull plugin!
10 Carlos Magaña // Nov 20, 2006 at 12:03 pm
Thank a lot for this plugin, It’s excatly what I need.
11 Bárbara // Dec 21, 2006 at 12:20 pm
Great Plugin!!
Thanks!
12 klisiu // Dec 26, 2006 at 11:59 am
An idea for that plugin is great, but it doesn’t work on my blog. Please - help!
13 Bruce // Dec 26, 2006 at 8:56 pm
Klisiu, I looked at your site. From what I can tell, not understanding your language, it seems that you have some other plugin or setting which is combining with my plugin, causing it to format like so:
pagename - site title >> Blog Archive
I’m sorry I don’t know what setting that might be.
The good news is that it still puts the pagename first, which is what I wanted. The bad news is that it is putting the unneeded “blog archive” on the title too.
Possibly try a different theme? Kubrick is such an overused theme anyway. Maybe it is some hack you made to that theme?
14 Emmanuel // Jan 8, 2007 at 3:00 pm
404 again for the download link :-/
15 Michael // Jan 17, 2007 at 7:59 am
I prefer the “Optimal Title” plugin because it allows you to specify a different format for your main index page than for your Posts and Pages. Lots of options are available:
http://www.bloggingformortals.com/easy-search-engine-optimization-for-wordpress/
16 調整中! » Blog Archive » Hatenaブックマーク for WordPress // Feb 21, 2007 at 11:50 am
[…] ただ、少し文字化けが・・・・「Wordpress title suffix plugin」と共存させると Hatenaでのタイトルが文字化けする(泣) […]
17 WP Plugins DB » Blog Archive » Title Suffix Prettifier // May 19, 2007 at 11:35 pm
[…] Visit […]
18 Getting Easy Beer Money from Blogging #2 - Google Adsense at The Gospel According To Rhys // May 22, 2007 at 3:46 pm
[…] - Blog name”, rather than “Blog name - Title”. Wordpress Users (and Han), get The Wordpress Title Suffix Plugin, Blogger users follow this method (thanks […]
19 WP Plugins DB » Plugin Details » Title Suffix // Jul 4, 2007 at 4:58 am
[…] Visit […]
20 Neto Cury Blog » Blog Archive WordPress Title Suffix Plugin - // Jul 17, 2007 at 4:19 pm
[…] um plugin legal, o WordPress Title Suffix Plugin, ele adiciona o título do artigo, no título no blog, na barra do navegador, lá em cima ó […]
21 jameswillisisthebest // Sep 8, 2007 at 12:23 pm
This is my first post
just saying HI
22 WordPressプラグイン「Title Suffix」でタイトル表記の順番を変更する - WordPress & Business メモ // Nov 7, 2007 at 7:24 pm
[…] Coder’s Eyeさんのサイト「Wordpress title suffix plugin」からダウンロードできます。 […]
23 Title Suffix Prettifier | SURPI // Dec 3, 2007 at 4:54 am
[…] Plugin Page […]
24 タイトルをサイトの前に « 27000円でサーバを買った // Jan 30, 2008 at 7:16 pm
[…] 検索エンジンの整合性を考えると、「タイトル名« サイト名」と言うように、<title></title>タグに埋め込んだ方がいいわけです。このためtitle-suffix プラグインを 活用すると言う手があるのですが、このテーマを利用したら、「タイトル名at サイト名」になっていました。そこで、header.phpを調べると以下のようになっていました。<title><?php wp_title(”); if (function_exists(’is_tag’) and is_tag()) { ?>Tag Archive for <?php echo $tag; } if (is_archive()) { ?> archive<?php } elseif (is_search()) { ?> Search for <?php echo $s; } if ( !(is_404()) and (is_search()) or (is_single()) or (is_page()) or (function_exists(’is_tag’) and is_tag()) or (is_archive()) ) { ?> at<?php } ?> <?php bloginfo(’name’); ?></title> […]
25 ソースに表示されるタイトルの見栄えを良くするplugin - : WordPress日本語2.5 memo // Apr 14, 2008 at 6:32 pm
[…] »がgoogle検索の上位表示に影響があるようです、BirDesignさんのお教えに従い”wp-Title Suffix“というプラグインを使ってみした。 […]
Leave a Comment