Transliterate existing cyrillic slugs (post_name) in wordpress


/ Published in: PHP
Save to your folder(s)

While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian.

[RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it only does the transliteration for new or "edited" posts (i.e. you have to open the post at least once and "edit" the permalink, then it will be transliterated).

Since this blog more than 500 posts this manual updating wasn't an option so we wrote this simple script. Maybe it will save somebody some time.

You'd probably better back-up your database before updating it (google for mysqldump syntax).

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.