首页 » WordPress » 在你的 WordPress 博客创建作者页面

在你的 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(); ?>

其他解决方案

翻译自:Most Desired WordPress Hacks: 11 Common Requests and Fixes 第八点。

作者:雪山飞猪
原文链接:在你的 WordPress 博客创建作者页面

标签:

17fav 收藏本文 [Post to Twitter]分享到 Twitter

7 条评论 添加你的评论

发表评论

必须

必填,打死不公开

:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:

如何显示特定分类下的日志 在日志下显示作者简介


强烈推荐

PureCSS WordPress Theme 长期承接 WordPress 项目

最新日志

最新留言

赞助商