在你的 WordPress 博客创建作者页面
September 16th, 2008 at 01:27am 雪山飞猪
默认情况下,WordPress 会使用 author.php 文件然后 archive.php 文件,最后 index.php 文件去显示你博客的特定作者文章列表。
所以,你想改变你的博客作者列表页面的样子,你需要创建一个 author.php 文件,如果不存在,通过拷贝 archive.php,如果 archive.php 也不存在,那就拷贝 index.php。
如果你想显示作者的网站,邮箱和个人履历等,让读者更多地了解这个作者。那么就加上以下代码:
Articles by <?php the_author(); ?> Author Website: <?php the_author_url(); ?> Author Email: <?php the_author_email(); ?> Author Bio: <?php the_author_description(); ?>
其他解决方案:
- How To: Adding An Author Page To Your WordPress Blog
- Using Author Template Tags Outside of the WordPress Loop
- Kafkaesquí’s Get Author Profile Plugin- 可以让你在主循环之外访问和提供作者信息,比如在博客的侧边拦上显示博客的主人和贡献者列表。.
翻译自:Most Desired WordPress Hacks: 11 Common Requests and Fixes 第八点。
作者:雪山飞猪
原文链接:在你的 WordPress 博客创建作者页面


分享到 Twitter

1. Chris.Ro | September 16, 2008 at 7:18 am | #
哆用户博客?
[回复该留言]2. aunsen | September 16, 2008 at 1:31 pm | #
沙发
[回复该留言]3. xaoma | September 16, 2008 at 3:10 pm | #
收到!
[回复该留言]4. 网事连篇 | September 19, 2008 at 5:33 pm | #
大哥,我想问个问题,最近我想学习点SEO,先拿我的名字来实验。我想在谷歌搜索我的名字就来我的博客。我要在博客里做点什么呀。
[回复该留言]5. 雪山飞猪 | September 19, 2008 at 5:40 pm | #
我其实不懂 SEO。但是给你两个建议:
[回复该留言]1. 到别人博客留言写这样的名字对别人很不尊重,别人希望看到你的网名。
2. 博客留言的链接都是 nofollow,你这样不会给你带来任何权重。
6. 网事连篇 | September 19, 2008 at 9:57 pm | #
在别人博客留言当然是用网名了,呵呵
[回复该留言]7. 林晨 | November 4, 2008 at 6:50 pm | #
原来如此,以前还不知道呢
[回复该留言]