WordPress: Template Tags/the author posts link:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
== Description ==
== 描述 ==
== 描述 ==
Displays a link to all posts by an author. The link text is the user's Display name publicly as field. The results of clicking on the presented link will be controlled by the [[WordPress:Template Hierarchy]] of [[WordPress:Author Templates]].  This tag must be used within [[WordPress:The Loop]].


显示连接到文章作者所有文章的一个链接。链接文本是用户在栏中公开显示的名称。点击当前链接的结果由[[WordPress:Author Templates|作者模板]]的 [[WordPress:Template Hierarchy|模板层级]]控制。必须在[[WordPress:The Loop|The Loop]]内部使用这个标签。
显示连接到文章作者所有文章的一个链接。链接文本是用户在栏中公开显示的名称。点击当前链接的结果由[[WordPress:Author Templates|作者模板]]的 [[WordPress:Template Hierarchy|模板层级]]控制。必须在[[WordPress:The Loop|The Loop]]内部使用这个标签。
== Usage ==


== 用法 ==
== 用法 ==


%%% <?php the_author_posts_link(); ?> %%%
%%% <?php the_author_posts_link(); ?> %%%
%%% <?php the_作者_文章_链接(); ?> %%%
== Examples ==


== 例子 ==
== 例子 ==
=== Use Example ===


=== 使用例子 ===
=== 使用例子 ===
Displays the link, where the default link text value is the user's '''Display name publicly as''' field. 
显示链接,默认链接文章参数值是用户'''公开显示姓名'''栏。
显示链接,默认链接文章参数值是用户'''公开显示姓名'''栏。


  &lt;p&gt;Other posts by <?php the_author_posts_link(); ?>&lt;/p&gt;
  &lt;p&gt;Other posts by <?php the_author_posts_link(); ?>&lt;/p&gt;
&lt;p&gt;Other <?php the_作者_文章_link()发表; ?>&lt;/p&gt;
== Parameters ==


== 参数==
== 参数==
This function takes no arguments.
这个函数没有参数。
这个函数没有参数。
== Deprecated Parameters ==


== 不可以使用的参数 ==
== 不可以使用的参数 ==
; idmode : (''string'') Sets the element of the author's information to display for the link text.


; idmode : (''字符串'') 将作者的信息元素设置,显示链接文本。、
; idmode : (''字符串'') 将作者的信息元素设置,显示链接文本。、
== Related ==


== 相关的 ==
== 相关的 ==
{{Tag Author Tags}}
{{标签作者标签}}
{{标签作者标签}}


{{Tag Footer}}
{{标签 页底文字}}
{{标签 页底文字}}

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