WordPress 作者公开名

the_author()

介绍

the_author() 是显示作者公开名的函数,此函数必须在 the_loop 循环标签内使用才有效。

WordPress 作者公开名

使用

<?php the_author(); ?>

示例

显示公开名:

<p>This post was written by <?php the_author(); ?></p>

如果个人资料设置的公开名是 admin,你们将显示为

This post was written by admin


已发布

分类

作者:

标签