2020-05-01 / 2156阅 / 悠然
Warning: This function has been deprecated. Use get_bookmarks() instead.
Gets an array of link objects associated with category n.
Usage:
$links = get_linkobjects(1); if ($links) { foreach ($links as $link) { echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>'; } }
Fields are:
Top ↑
(int)
(Required)
The category to use. If no category supplied uses all
(string)
(Optional)
the order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'. Or maybe owner. If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a random order.
Default value: 'name'
(int)
(Required)
Limit to X entries. If not specified, all entries are shown.
(array)