get_linkobjects [ WordPress Function ]
get_linkobjects ( $category = 0, $orderby = 'name', $limit = 0 )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Gets an array of link objects associated with category n.
Usage:
$links = get_linkobjects(1);
if ($links) {
foreach ($links as $link) {
echo ''.$link->link_name.'
'.$link->link_description.' ';
}
}
Fields are:
- link_id
- link_url
- link_name
- link_image
- link_target
- link_category
- link_description
- link_visible
- link_owner
- link_rating
- link_updated
- link_rel
- link_notes
Source
<?php
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
$links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
$links_array = array();
foreach ($links as $link)
$links_array[] = $link;
return $links_array;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_linkobjects() WordPress function reference, arguments and ...
Gets an array of link objects associated with category n.
queryposts.com - WordPress › Support » Links: Description vs. Notes (semi-urgent)
If you have a look in the file wp-links/links.php there is a new function get_linkobjects() . This function works a little like the main WP 'loop'. It returns an array of ...
wordpress.org - My little music
@since 1.0.1 * @deprecated Use get_linkobjects() * @see get_linkobjects() * * @param string $cat_name The category name to use. If no match is found uses ...
www.mylittlemusic.net - get_queried_object_id (WordPress Function) - WPSeek.com
Similar Functions: get_queried_object, get_user_option, get_linkobjects, get_objects_in_term, sanitize_user_object. Retrieve ID of the current queried object.
wpseek.com