Wordpress title suffix plugin

Posted on | January 24, 2006 | 29 Comments

another pluginI 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: , , ,

See Also

Comments

29 Responses to “Wordpress title suffix plugin”

  1. BirDesign
    April 19th, 2006 @ 11:10 pm

    タイトルをサイト名の前に表示…

    WordPressを使ったサイトのタイトルは、かなりの確率で「サイト名 » 記事のタイトル」となっています。実はこれ、検索エンジン経由の訪問者を逃す、原因のひとつとなるのです。
    Yahoo…

  2. [WordPress] title suffix plugin « Tristeza On Guitar
    May 16th, 2006 @ 6:21 pm

    [...] ダウンロード http://coderseye.com/2006/wordpress-title-suffix-plugin.html [...]

  3. Tchakra
    June 22nd, 2006 @ 2:35 pm

    Nice plugin! thanks for the effort.

  4. William
    July 24th, 2006 @ 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
    July 31st, 2006 @ 6:32 am

    [...] Wordpress title suffix plugin を使っていると、表記が変になります。記事名の最後にもセパレーターが付いてしまいました。 [...]

  6. Ar2r
    September 17th, 2006 @ 10:16 pm

    I cant download file. it writes that its not found.
    help

  7. RIGHT
    October 30th, 2006 @ 11:09 am

    Can’t download file too. A 404. :(

  8. Bruce
    October 30th, 2006 @ 10:35 pm

    Download link is fixed.

  9. RIGHT
    October 31st, 2006 @ 4:07 am

    Thanks for fixing it & for this little but great & usefull plugin!

  10. Carlos Magaña
    November 20th, 2006 @ 12:03 pm

    Thank a lot for this plugin, It’s excatly what I need.

  11. Bárbara
    December 21st, 2006 @ 12:20 pm

    Great Plugin!!

    Thanks!

  12. klisiu
    December 26th, 2006 @ 11:59 am

    An idea for that plugin is great, but it doesn’t work on my blog. Please – help!

  13. Bruce
    December 26th, 2006 @ 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
    January 8th, 2007 @ 3:00 pm

    404 again for the download link :-/

  15. Michael
    January 17th, 2007 @ 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
    February 21st, 2007 @ 11:50 am

    [...] ただ、少し文字化けが・・・・「Wordpress title suffix plugin」と共存させると Hatenaでのタイトルが文字化けする(泣) [...]

  17. WP Plugins DB » Blog Archive » Title Suffix Prettifier
    May 19th, 2007 @ 11:35 pm

    [...] Visit [...]

  18. Getting Easy Beer Money from Blogging #2 - Google Adsense at The Gospel According To Rhys
    May 22nd, 2007 @ 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
    July 4th, 2007 @ 4:58 am

    [...] Visit [...]

  20. Neto Cury Blog » Blog Archive WordPress Title Suffix Plugin -
    July 17th, 2007 @ 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
    September 8th, 2007 @ 12:23 pm

    This is my first post
    just saying HI

  22. WordPressプラグイン「Title Suffix」でタイトル表記の順番を変更する - WordPress & Business メモ
    November 7th, 2007 @ 7:24 pm

    [...] Coder’s Eyeさんのサイト「Wordpress title suffix plugin」からダウンロードできます。 [...]

  23. Title Suffix Prettifier | SURPI
    December 3rd, 2007 @ 4:54 am

    [...] Plugin Page [...]

  24. タイトルをサイトの前に « 27000円でサーバを買った
    January 30th, 2008 @ 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
    April 14th, 2008 @ 6:32 pm

    [...] &raquo;がgoogle検索の上位表示に影響があるようです、BirDesignさんのお教えに従い”wp-Title Suffix“というプラグインを使ってみした。 [...]

  26. 記事タイトルをブログタイトルの前に表示する - Memo@navi
    June 30th, 2008 @ 5:45 am

    [...] Wordpress title suffix plugin 関連サイト:タイトルをサイト名の前に表示 « BirDesign [...]

  27. ソースに表示されるタイトルの見栄えを良くするplugin wp-Title Suffix - : 身延の風
    July 17th, 2008 @ 4:55 am

    [...] wp-Title Suffixというプラグインです。 [...]

  28. aaffafd
    February 26th, 2009 @ 1:10 am

    afvnoranrnapn8nvp9ahprh
    bfbeabarb
    babarbabarbrbabnarr
    barbrbnarbnnrnbabnrnbabardfrb

  29. ????????????????? - : ?????
    July 29th, 2009 @ 10:57 pm

    [...] ?8?TaM Google Analytics ??????google-analytics??? ?9?Title Suffix ?????????????????????? ?10?WP Multibyte Patch [...]

Leave a Reply





CommentLuv Enabled

Video & Audio Comments are proudly powered by Riffly