是否可以在所有页面(而不是博客条目)上显示创建它的作者?我找到的每个插件都是用于博客帖子的。
Show author on every sub-page
2 个回复
最合适的回答,由SO网友:m4n0 整理而成
您需要将以下代码添加到内容页。主题文件夹中的php。
<?php the_author(); ?>
SO网友:Ben H
如果我理解正确,您应该能够编辑页面模板以包含以下内容。但我不确定是否有插件可以做到这一点。
更多信息:https://codex.wordpress.org/Function_Reference/get_the_author
<?php $author = get_the_author(); echo "$author"; ?>
**未经测试结束