SO Pinyin Slugs plugin

The other day I released my 5th WordPress plugin: SO Pinyin Slugs.

The SO Pinyin Slugs plugin transforms Chinese character titles (of Posts, Pages and all other content types that use slugs) into a permalink friendly slug, showing pinyin that can be read by humans and (Chinese) search engines alike.

Similar as with the SO Mobile Map Widget plugin I have added the SO as the first part of the plugin name merely to avoid any naming conflicts and I will use that for all my future plugins.

The SO Pinyin Slugs plugin is a fork of the original Pinyin Permalinks plugin by user xiaole_tao who has seemingly abandoned his plugin as he never responded to emails.

The original plugin can basically only be used on Chinese only websites; as soon as you install it on a bi/multilingual site it messes up the slugs of the non-Chinese languages.

This fork has been adapted by my ex-colleague Denis Cao in such a way that the slugs of the non-Chinese language remain untouched and only the Chinese character slugs will be transformed into pinyin.

Chinese characters don’t come out good in permalinks. Without the SO Pinyin Slugs plugin activated, the example post I made for the screenshot will get a slug like this: %e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e4%bc%98%e5%8c%96. With the plugin the slug automatically becomes sousuoyinqingyouhua.

Search engines such as Baidu obviously cannot make much of the first slug, but they can handle pinyin perfectly, especially when it is written as one long string without hyphens or underscores.

So instead of transforming “中国” into two separate words divided by a hyphen or an underscore (the original plugin has this as options), it is best transformed into “zhongguo”. The only option SO Pinyin Slugs therefore has left is the length that you can limit to an x amount of letters. The default is 100, which should be plenty for most.

I have decided to only support this plugin through Github. Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue over at Github. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.

The SO Pinyin Slugs plugin has received the WPML Certification of Compatibility.

WPML Certification of Compatibility

Screenshots: