显示文章的作者:
<?php the_author(); ?>
显示文章作者的描述:
<?php the_author_description(); ?>
显示文章作者的登录名:
<?php the_author_login(); ?>
显示文章作者的firstname:
<?php the_author_firstname(); ?>
显示文章作者的lastname:
<?php the_author_lastname(); ?>
显示文章作者的昵称:
<?php the_author_nickname(); ?>
显示文章作者的ID号:
<?php the_author_ID(); ?>
显示文章作者的电子邮箱:
<?php the_author_email(); ?>
显示文章作者的网站地址:
<?php the_author_url(); ?>
显示一个以文章作者名为链接名,链接地址为文章作者的网址的链接:
<?php the_author_link (); ?>
显示文章作者已发表文章的篇数:
<?php the_author_posts(); ?>
显示一个链接到文章作者已发表文章列表的链接:
<?php the_author_posts_link(); ?>
显示blog作者列表:
<?php wp_list_authors(); ?>
参数:
- optioncount:是否显示各个作者发表文章数,可选值:true 和 false(默认值)
- exclude_admin:是否不显示”admin”用户,可选值:true(默认值) 和 false
- show_fullname:是否显示各个作者的全名,如果不显示,将显示昵称。可选值:true 和 false(默认值)
- hide_empty:是否不显示发表文章数为0的作者,可选值:true(默认值) 和 false
- feed:链接到各个作者发表文章的RSS供稿种子链接名,默认为空,不显示RSS供稿种子
- feed_image:供稿种子的图片地址,如果提供此项,则覆盖上面的feed,默认为空。