Whenever a user tries to edit and update his profile, the user_nicename(which is so important because wordpress use it as the slug in an author link) will mysteriously slip away.Tried so many workarounds in vail.
I guess you just can't let user edit his profile in front-end when a chinese user_login is around!
So I really need to change the default behaviour of the author link.But It's easy said than done!
Finally inspired by a plugin called edit author slug ,I came up with this http://wordpress.stackexchange.com/questions/252920/wordpress-404-not-found-after-rewrtie-the-author-link/252944#252944
So I just make user_id be the user_nicename and now my author link looks sth like /user/user_id and every body is happy!
解决WordPress中文用户名问题
本文介绍了如何解决WordPress中使用中文用户名登录导致的作者链接丢失问题。通过调整默认设置,将用户ID作为用户别名,成功修复了前端编辑资料时中文用户名引起的404错误。

被折叠的 条评论
为什么被折叠?



