Friday, August 24, 2007

Wordpress Plugin: Chinese PinYin Slug

The Chinese PinYin Slug Wordpress plugin convert Chinese UTF-8 character into English PinYin character from a post slugs to improve  search engine optimization.
For example, when you publish a post with a title like this:
"Chinese PinYin"
Wordpress automatically assigns a long filename to your post, called a post slug:
/%e4%b8%ad%e6%96%87%e6%8b%bc%e9%9f%b3
PinYin Slug plugin convert Chinese character into PinYin character. With Chinese PinYin plugin activated, the slug for our example blog post would look like this:
/zhongwenpinyin
The slug is generated on saving a post (so you get a chance to look at it before publishing, and change it), or on publish. It won't overwrite an existing slug. You can force a new slug generation by deleting the existing one.

Installation

Download the PinYin Plugin and unzip to the '/wp-content/plugins/' directory.  Activate the plugin through the 'Plugins' menu in WordPress. Now, when editing a post, give it a title and press Save and Continue Editing. The PinYin Slug plugin will generate a slug. If you edit it, the plugin will honor your slug and won't change it.

If you find this plugin useful, please, link to this page: Chinese PinYin Slug Wordpress Plugin.

14 comments:

  1. great plugin! It is very useful in my chinese blog. I need not write the post slug in english every time I post an article. Thanks for your awesome work!

    ReplyDelete
  2. It is not very useful,in fact,we can write the post slug in English or Chinese PinYin,too.

    ReplyDelete
  3. [...] Wordpress Plugin: Chinese PinYin Slug The Chinese PinYin Slug Wordpress plugin convert Chinese UTF-8 character into English PinYin character from a post slugs to improve search engine optimization. (tags: wordpress plugin) [...]

    ReplyDelete
  4. [...] Wordpress Plugin: Chinese PinYin Slug The Chinese PinYin Slug Wordpress plugin convert Chinese UTF-8 character into English PinYin character from a post slugs to improve search engine optimization. (tags: wordpress plugin) [...]

    ReplyDelete
  5. Nice work, Wiliam. But I still like writing English slugs.

    ReplyDelete
  6. jameswillisisthebestSeptember 8, 2007 at 6:44 AM

    This is my first post
    just saying HI

    ReplyDelete
  7. Hi this is great tool!Xie Xie. I uploaded this plugin into my Wordpress but I can´t read my hanzi in my post :-(

    Help please!

    ReplyDelete
  8. I have check that php code and write with ruby plugin for myself, but i have found that code can not work with some chinese word like 莓 => mei

    ReplyDelete
  9. [...] If you find this plugin useful, please, link to this page: Chinese PinYin Slug Wordpress Plugin. [...]

    ReplyDelete
  10. [...] The page of English edition introduction of this plug-in unit is: Wordpress Plugin: Chinese PinYin Slug [...]

    ReplyDelete
  11. [...] The page of English edition introduction of this plug-in unit is: Wordpress Plugin: Chinese PinYin Slug [...]

    ReplyDelete
  12. You did a good job!

    what I am thinking is that maybe someone like to remain the Chinese slug & pinyin & english in the url maybe.

    also we may need the post content to be translate to have both Chinese & Pinyin altogether.

    anyway, this is a v~ery good start!

    A good start is half success.

    ReplyDelete