如何更改 WordPress 作者存档页面的 URL?
我想使用 www.example.com/artist/xyz,而不是 www.example.com/author/xyz。
我希望这就像将author.php复制到我的主题目录中的artist.php一样简单,但没有那么幸运。 WordPress 在哪里对作者存档页面进行特殊处理?
.htaccess 重写是另一种选择,但我无法让任何东西与现有的 WordPress 重写规则一起工作。
谢谢,
Instead of www.example.com/author/xyz, I want to use www.example.com/artist/xyz.
I was hoping it was as easy as copying author.php to artist.php in my theme directory, but no such luck. Where does wordpress handle the special processing for the author archive pages?
.htaccess rewriting is another option, but I wasn't able to get anything to work with the existing wordpress rewrite rules.
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将此代码放入主题的functions.php中:
Place this code in the functions.php of your theme: