Aug
24
Wordpress Plugin: Chinese PinYin Slug
Filed Under development | 18 Comments
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.
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!
It is not very useful,in fact,we can write the post slug in English or Chinese PinYin,too.
[...] 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) [...]
[...] 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) [...]
Nice work, Wiliam. But I still like writing English slugs.
[...] Visit [...]
This is my first post
just saying HI
[...] PinYin Slug (在2.5下好像没有生效) [...]
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!
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
[...] If you find this plugin useful, please, link to this page: Chinese PinYin Slug Wordpress Plugin. [...]
[...] The page of English edition introduction of this plug-in unit is: Wordpress Plugin: Chinese PinYin Slug [...]
[...] The page of English edition introduction of this plug-in unit is: Wordpress Plugin: Chinese PinYin Slug [...]
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.