首页 WordPress函数 WordPress作者文章页面链接标签:the_author_posts_link
正文 评论

WordPress作者文章页面链接标签:the_author_posts_link

WordPress模板标签the_author_posts_link用于输出指向当前作者所有文章页面的链接,其中锚文本为作者个人资料里“公开显示为”设置的名称。

需要注意the_author_posts_link()函数与the_author_link()函数的区别,前者输出的是该作者的文章归档页面链接,而the_author_link()函数输出的是作者在个人资料中设置的“站点”链接。

the_author_posts_link()

the_author_posts_link()函数不接收任何参数,直接调用即可。

函数使用示例

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

扩展阅读

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

相关函数:

  • the_author()
  • 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()
  • get_author_posts_url()
  • get_the_modified_author()
  • the_modified_author()
  • wp_dropdown_users()
  • wp_list_authors()
-=||=-收藏赞 (0)
更多主题
单栏极简文艺WordPress博客主题:Diaspora主题
¥ 0 关注:21,681
详情
v1.0.0
小程序收录免费WordPress主题:XCX主题
¥ 0 关注:21,681
详情
简约黑白WordPress个人博客主题:Personal主题
¥ 0 关注:21,314
详情
v1.0.0
一款简约单栏的免费WordPress博客主题:itheme主题
¥ 0 关注:19,265
详情
功能丰富切轻量的WordPress虚拟资源主题:Rizhuti主题
¥ 599 关注:19,240
详情
v3.4.0
适用自媒体资讯的免费WordPress主题:Autumn主题
¥ 0 关注:16,484
详情
回复
暂无评论

不要再留垃圾评论了,主题君整理资源不容易,留几句鼓励的话吧。