WordPress模板函数the_author用于输出当前文章作者的名称,必须用在The Loop主循环中。
the_author()
the_author()函数没有任何参数,直接调用即可。
函数使用示例
<p>作者:<?php the_author(); ?></p>
扩展阅读
the_author()函数位于:wp-includes/author-template.php
WordPress模板函数the_author用于输出当前文章作者的名称,必须用在The Loop主循环中。
the_author()
the_author()函数没有任何参数,直接调用即可。
<p>作者:<?php the_author(); ?></p>
the_author()函数位于:wp-includes/author-template.php
之前