wpseek.com
A WordPress-centric search engine for devs and theme authors
get_linksbyname is deprecated since version 2.1.0!
Alternative: get_bookmarks()
Alternative: get_bookmarks()
get_linksbyname › WordPress Function
Since0.71
Deprecated2.1.0
› get_linksbyname ( $cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 0 )
Parameters: (10) |
|
See: | |
Defined at: |
|
Codex: |
Gets the links associated with category $cat_name.
Related Functions: wp_get_linksbyname, get_linkobjectsbyname, get_linkcatname, get_links, get_linksbyname_withrating
Source
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 0) { _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $cat_id = -1; $cat = get_term_by('name', $cat_name, 'link_category'); if ( $cat ) $cat_id = $cat->term_id; get_links($cat_id, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated); }