WordPress作者名称标签:the_author

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

WordPress模板标签the_author用于输出当前文章作者的名称,必须用在The Loop主循环中。

the_author()

the_author()函数没有任何参数,直接调用即可。

函数使用示例

<p>作者:<?php the_author(); ?></p>

扩展阅读

the_author()函数位于:wp-includes/author-template.php

相关函数:

  • get_the_author()
  • get_the_author_id()
  • the_author_link()
  • get_the_author_link()
  • the_author_meta()
  • get_the_author_meta()
  • the_author_posts()
  • get_the_author_posts()
  • the_author_posts_link()
  • get_author_posts_url()
  • get_the_modified_author()
  • the_modified_author()
  • wp_dropdown_users()
  • wp_list_authors()