get_linkobjectsbyname [ WordPress Function ]
get_linkobjectsbyname ( $cat_name = "noname", $orderby = 'name', $limit = -1 )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_linkobjects, get_linksbyname, get_linkcatname, wp_get_linksbyname, get_objects_in_term
Gets an array of link objects associated with category $cat_name.
$links = get_linkobjectsbyname('fred');
foreach ($links as $link) {
echo ''.$link->link_name.' ';
}
Source
<?php
function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
$cat_id = -1;
$cat = get_term_by('name', $cat_name, 'link_category');
if ( $cat )
$cat_id = $cat->term_id;
return get_linkobjects($cat_id, $orderby, $limit);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- WordPress › Link Manager Changes
Jul 31, 2003... between no longer cut the mustard for anything but the simplest use), I have added get_linkobjects(), and get_linkobjectsbyname() functions.
wordpress.org - Morfeo Website » Installing a Morfeo weblog
Changes have therefore been made to the part of the >friends_rss.php file that calls the function get_linkobjectsbyname, which is now obsolete.
website.morfeo-project.org - [wp-hackers] get_page_link by page name/slug?
Nov 26, 2006... usage: echo get_page_link_by_slug('about'); > I based the syntax on the get_linkobjectsbyname() function - which adds another hit on the ...
lists.automattic.com - wp_object_name_sort_cb()
...object... add_object_page() · clean_object_term_cache() · get_linkobjects() · get_linkobjectsbyname() · get_objects_in_term() · get_object_taxonomies() ...
queryposts.com