您现在的位置是:首页 > 网站制作 > WordpressWordpress

WordPress函数the_author_link()

杰帅2023-08-13【Wordpress】人已围观

简介the_author_link() 是显示文章作者的网站链接,该链接会加在 the_author() 显示的公开名秒文本中。

介绍

the_author_link() 是显示文章作者的网站链接,该链接会加在 the_author() 显示的公开名秒文本中。

网站链接来自 仪表盘 -> 用户 -> 我的个人资料 中的“站点”所填写的值。

并且该函数必须使用在 the_loop 中。

使用

<?php the_author_link(); ?>

参数

该函数不接受任何参数。

示例

<p>Written by: <?php the_author_link(); ?></p>

将显示“ Written by: admin”,admin会带上上图“站点”的链接。

Tags:wordpress函数   WordPress建站

很赞哦! ()

文章评论

本站推荐

站点信息

  • 建站时间:2018-10-24
  • 网站程序:帝国CMS7.5
  • 主题模板《今夕何夕》
  • 文章统计1172篇文章
  • 标签管理标签云
  • 统计数据百度统计
  • 微信公众号:扫描二维码,关注我们