WordPress: Template Tags/the author posts link:修订间差异
来自站长百科
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
== 描述 == | == 描述 == | ||
显示连接到文章作者所有文章的一个链接。链接文本是用户在栏中公开显示的名称。点击当前链接的结果由[[WordPress:Author Templates|作者模板]]的 [[WordPress:Template Hierarchy|模板层级]]控制。必须在[[WordPress:The Loop|The Loop]]内部使用这个标签。 | 显示连接到文章作者所有文章的一个链接。链接文本是用户在栏中公开显示的名称。点击当前链接的结果由[[WordPress:Author Templates|作者模板]]的 [[WordPress:Template Hierarchy|模板层级]]控制。必须在[[WordPress:The Loop|The Loop]]内部使用这个标签。 | ||
== 用法 == | == 用法 == | ||
%%% <?php the_author_posts_link(); ?> %%% | %%% <?php the_author_posts_link(); ?> %%% | ||
== 例子 == | == 例子 == | ||
=== 使用例子 === | === 使用例子 === | ||
显示链接,默认链接文章参数值是用户'''公开显示姓名'''栏。 | 显示链接,默认链接文章参数值是用户'''公开显示姓名'''栏。 | ||
<p>Other posts by <?php the_author_posts_link(); ?></p> | <p>Other posts by <?php the_author_posts_link(); ?></p> | ||
== 参数== | == 参数== | ||
这个函数没有参数。 | 这个函数没有参数。 | ||
== 不可以使用的参数 == | == 不可以使用的参数 == | ||
; idmode : (''字符串'') 将作者的信息元素设置,显示链接文本。、 | ; idmode : (''字符串'') 将作者的信息元素设置,显示链接文本。、 | ||
== 相关的 == | == 相关的 == | ||
{{标签作者标签}} | {{标签作者标签}} | ||
{{标签 页底文字}} | {{标签 页底文字}} |
2008年7月5日 (六) 15:11的最新版本
描述[ ]
显示连接到文章作者所有文章的一个链接。链接文本是用户在栏中公开显示的名称。点击当前链接的结果由作者模板的 模板层级控制。必须在The Loop内部使用这个标签。
用法[ ]
%%% <?php the_author_posts_link(); ?> %%%
例子[ ]
使用例子[ ]
显示链接,默认链接文章参数值是用户公开显示姓名栏。
<p>Other posts by <?php the_author_posts_link(); ?></p>
参数[ ]
这个函数没有参数。
不可以使用的参数[ ]
- idmode
- (字符串) 将作者的信息元素设置,显示链接文本。、
相关的[ ]
the_author,
the_author_description,
the_author_login,
the_author_firstname,
the_author_lastname,
the_author_nickname,
the_author_ID,
the_author_email,
the_author_url,
the_author_link,
the_author_icq,
the_author_aim,
the_author_yim,
the_author_msn,
the_author_posts,
the_author_posts_link,
list_authors,
wp_list_authors