模板标签-the_author()

0条评论

说明

该模板标签可显示文章的作者。该标签必须用在WordPress主循环(loop)中。

用法

<?php the_author(); ?> 

示例

显示作者的“公开显示”名称

显示作者在管理面板的“公开显示名称”中所设置的内容。

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

参数

该函数不接收参数。(该函数的参数已经被废止。)

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.