我正在尝试启动我自己的wordpress主题。
它运行良好,在开发阶段有一些小问题。
我使用<a href="" class="author_name fl_left">' . get_the_author() . '</a>
在我的帖子中打印作者名称链接。
它正在打印正确的作者姓名。但当我点击它时,它会重定向到主页。为什么?
当我们使用word press内置功能时,有必要创建author.php吗?
非常感谢您的帮助。
谢谢,Riffaz。
似乎您没有作者页面,然后您可以将用户链接到作者发布页面。你可以用这个代替
<a href="'.the_author_posts_link().'" class="author_name fl_left">' . get_the_author() . '</a>