您的当前位置:首页 > 知识博客 > wordpress建站

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

时间:2024-03-16

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()


欢迎咨询/Welcome to inquire
tel/vx:18842938855
qq:1685522781
email:1685522781@qq.com

Copyright © 2019-2024 baidu.bond


Whatsapp
Powered by RRZCMS