get_links_withrating()
get_links( int $category = -1, string $before = ”, stri…
get_links( int $category = -1,  string $before = ”,  string $after = ‘<br />’,  string $between = ‘ ‘,  bool $show_images = true,  string $orderby = ‘name’,  bool $show_description = true,  bool $show_rating = false,  int $limit = -1,  int $show_updated = 1,  bool $echo = true )
获取按id与类别关联的链接。
Gets the links associated with category by id.
获取按id与类别关联的链接。
Gets the links associated with category by id.
目录锚点:#说明#参数#返回#源码
说明(Description)
另见函数 get_bookmarks()
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 | 
|---|---|---|---|
| $category | (int) | 可选 | 要使用的类别。如果没有提供的类别使用所有 | 
| $before | (string) | 可选 | 链接前要输出的html | 
| $after | (string) | 可选 | 链接后要输出的html | 
| $between | (string) | 可选 | 要在链接/图像及其描述之间输出的html。如果没有图像或显示图像=真,则不使用 | 
| $show_images | (bool) | 可选 | 是否显示图像(如果已定义)。 | 
| $orderby | (string) | 可选 | 输出链接的顺序。E、 例如,“id”、“name”、“url”、“description”或“rating”。或者是主人。如果名称以下划线开头,则顺序将颠倒。您还可以指定“rand”作为将以随机顺序返回链接的顺序。 | 
| $show_description | (bool) | 可选 | 如果show_images=false/未定义,是否显示描述。 | 
| $show_rating | (bool) | 可选 | 显示分级星/字符 | 
| $limit | (int) | 可选 | 限制为X个条目。如果未指定,则显示所有条目。 | 
| $show_updated | (int) | 可选 | 是否显示上次更新的时间戳 | 
| $echo | (bool) | 可选 | 是回显结果,还是返回结果 | 
返回(Return)
(null|string)
源码(Source)
| 更新版本 | 源码位置 | 使用 | 被使用 | 
|---|---|---|---|
| 2.1.0 | wp-includes/deprecated.php:924 | 3 | 8 | 
类别:WordPress 函数手册、 
		本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!