网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   Blog(博客)/Wiki(维客)/RSS/Cms (https://www.0058.net/forumdisplay.php?f=17)
-   -   在你的 WordPress 博客创建作者页面 (https://www.0058.net/showthread.php?t=3332)

car 2008-09-28 09:04 PM

在你的 WordPress 博客创建作者页面
 
默认情况下,WordPress 会使用 author.php 文件然后 archive.php 文件,最后 index.php 文件去显示你博客的特定作者文章列表。

所以,你想改变你的博客作者列表页面的样子,你需要创建一个 author.php 文件,如果不存在,通过拷贝 archive.php,如果 archive.php 也不存在,那就拷贝 index.php。

如果你想显示作者的网站,邮箱和个人履历等,让读者更多地了解这个作者。那么就加上以下代码:

Code:

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- 可以让你在主循环之外访问和提供作者信息,比如在博客的侧边拦上显示博客的主人和贡献者列表。.


All times are GMT +8. The time now is 11:08 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.