the_author_posts_link在Wordpress上返回404

时间:2013-06-07 12:26:05

标签: wordpress http-status-code-404 username

使用the_author_posts_link函数时,我在Wordpress中遇到问题。

基本上我的用户名字上有特殊字符或空格,例如“Bufón”或“Kogi Kaishakunin”,此功能返回的链接将我带到404页面。

请参阅此处的示例:

http://www.coliseoweb.com/author/Buf%C3%B3n/ http://www.coliseoweb.com/author/Kogi%20Kaishakunin/

我该如何解决这个问题?我知道用“o”替换“ó”解决了特殊字符用户名的问题,但是我无法找出空白区域(我尝试过划线或移除空格)。

有关如何解决此问题的任何帮助吗?如何更改该功能才能正常工作?我应该使用其他功能吗?


编辑1:

我甚至试过这个:

<a href="<?php echo '/author/'.get_the_author_meta('user_nicename'); ?>" title="<?php the_author(); ?>" rel="author"><?php the_author(); ?></a>

它没有成功,同样的空间问题......


谢谢!

哈维尔

0 个答案:

没有答案
相关问题