函数原型:
the_author_link()
如果作者设置了主页,则回显HTML链接,否则只回显作者的姓名。
函数源码:
function the_author_link() {
echo get_the_author_link();
}
使用举例:
<p>Written by:
<?php echo the_author_link(); ?></p>
此示例将作者的网站URL显示为链接,链接的文本为作者的配置文件显示名称。在本例中,作者的显示名称是James Smith。
结果为:
<p>Written by: <a href="http://example.com" rel="nofollow">James Smith</a></p>
-
WordPress函数:esc_html_x 带上下文的转义翻译WordPress函数:esc_html_x 带上下文的转义翻译
-
WordPress函数:esc_attr__ 转义属性及翻译WordPress函数:esc_attr__ 转义属性及翻译
-
WordPress函数:esc_attr_e 属性转义、翻译、显示WordPress函数:esc_attr_e 属性转义、翻译、显示
-
WordPress函数:esc_attr_x 带上下文的转义属性,翻译显示WordPress函数:esc_attr_x 带上下文的转义属性,翻译显示
-
WP Multilang WordPress翻译插件WP Multilang插件的主要功能是提供多语言支持,使用户能够创建多语言版本的网站,满足不同语言用户的需求。
-
WordPress公司官网主题在众多的WordPress企业官网主题中,追格公司推出了多款关于WordPress企业官网主题作品。我们之前已经分享过一些关于追格的企业官网主题,包括收费和免费版本,这些主题都因其独特的设计和出色的功能而深受用户喜爱。
暂无评论,抢个沙发...