WordPress: Template Tags/wp get links:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
{{Deprecated}}
== Description ==
{{取消的}}
{{取消的}}
== 描述 ==
== 描述 ==
Displays links associated with a numeric link category ID. This tag uses the settings you specify in the [[WordPress:Links Manager]] (pre-WordPress 2.1 only). For control over the formatting and display of your links within the tag's parameters, see [[WordPress:Template Tags/get_links|get_links()]].


显示与链接类别ID相关的链接。这个标签使用你在[[WordPress:Links Manager|链接管理器]](WordPress2.1版本之前的版本)中规定的设置。关于控制标签参数内部的链接的格式和显示样式,请看看[[WordPress:Template Tags/get_links|get_links()]]。
显示与链接类别ID相关的链接。这个标签使用你在[[WordPress:Links Manager|链接管理器]](WordPress2.1版本之前的版本)中规定的设置。关于控制标签参数内部的链接的格式和显示样式,请看看[[WordPress:Template Tags/get_links|get_links()]]。
== Replace With ==


== 取代 ==
== 取代 ==
[[WordPress:Template_Tags/wp_list_bookmarks|wp_list_bookmarks()]] accepts one or more numeric link categories through the 'category' parameter.


[[WordPress:Template_Tags/wp_list_bookmarks|wp_list_bookmarks()]]通过'类别'参数接受了一个或者更多的链接类别ID数字。
[[WordPress:Template_Tags/wp_list_bookmarks|wp_list_bookmarks()]]通过'类别'参数接受了一个或者更多的链接类别ID数字。
== Usage ==


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


%%% <?php wp_get_links(category); ?> %%%
%%% <?php wp_get_links(category); ?> %%%
%%% <?php wp_get_links(category); ?> %%%
== Examples ==


==例子 ==
==例子 ==
=== Links by Category Number ===


===根据类别数字,显示的类别 ===
===根据类别数字,显示的类别 ===


Show links for link category 1.
显示链接类别1的链接。
显示链接类别1的链接。
<?php wp_get_links(1); ?>


<?php wp_get_links(1); ?>
<?php wp_get_links(1); ?>


=== Include Before and After Text ===


=== 包含在文本之前和之后===
=== 包含在文本之前和之后===


Mimic the behavior of <tt>[[WordPress:Template Tags/get_links_list|get_links_list()]]</tt> but ''do'' respect the "Before Link", "Between Link and Description", and "After Link" settings defined for Link Categories in the Links Manager.


模仿<tt>[[WordPress:Template Tags/get_links_list|get_links_list()]]</tt>的行为,但是''的确''respect为链接管理器中的链接类别定义的"链接之前", "链接和描述之间", 和"链接之后"。
模仿<tt>[[WordPress:Template Tags/get_links_list|get_links_list()]]</tt>的行为,但是''的确''respect为链接管理器中的链接类别定义的"链接之前", "链接和描述之间", 和"链接之后"。


== Parameters ==


== 参数 ==
== 参数 ==


; category : (''integer'') The numeric ID of the link category whose links will be displayed. You must select a link category, if none is selected it will generate an error.
; category : (''integer'') 链接类别的ID数字,会显示这个链接类别的链接。你必须选择一个链接类别。如果你没有选择任何链接类别,会显示一个出错信息。
;类别:(''整数'')链接类别的ID数字,会显示这个链接类别的链接。你必须选择一个链接类别。如果你没有选择任何链接类别,会显示一个出错信息。
 
== Related ==
 
{{Tag Link Manager Tags}}


{{Tag Footer}}
== 相关的==
== 相关的==



2008年7月16日 (三) 16:21的最新版本


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists.


描述[ ]

显示与链接类别ID相关的链接。这个标签使用你在链接管理器(WordPress2.1版本之前的版本)中规定的设置。关于控制标签参数内部的链接的格式和显示样式,请看看get_links()

取代[ ]

wp_list_bookmarks()通过'类别'参数接受了一个或者更多的链接类别ID数字。

用法[ ]

%%% <?php wp_get_links(category); ?> %%%

例子[ ]

根据类别数字,显示的类别[ ]

显示链接类别1的链接。

<?php wp_get_links(1); ?>


包含在文本之前和之后[ ]

模仿get_links_list()的行为,但是的确respect为链接管理器中的链接类别定义的"链接之前", "链接和描述之间", 和"链接之后"。


参数[ ]

category
(integer) 链接类别的ID数字,会显示这个链接类别的链接。你必须选择一个链接类别。如果你没有选择任何链接类别,会显示一个出错信息。

相关的[ ]

模板:标签链接管理器标签

模板:标签页底文字