get_linksbyname_withrating

Gets the links associated with category 'cat_name' and display rating stars/chars.

Description

get_linksbyname_withrating( (string) $cat_name = 'noname', (string) $before = '', $after = '<br />', (string) $between = ' ', (constant) $show_images = true, (string) $orderby = 'id', (constant) $show_description = true, (int) $limit = -1, (int) $show_updated = 0 ); 

Parameters (9)

0. $cat_name — Optional. (string) => 'noname'
The category name to use. If no match is found uses all
1. $before — Optional. (string) => ''
The html to output before the link
2. $after — Optional. (string) => '
'
The html to output after the link
3. $between — Optional. (string) => ' '
The html to output between the link/image and its description. Not used if no image or show_images is true
4. $show_images — Optional. (constant) => true
Whether to show images (if defined).
5. $orderby — Optional. (string) => 'id'
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.
6. $show_description — Optional. (constant) => true
Whether to show the description if show_images=false/not defined
7. $limit — Optional. (int) => -1
Limit to X entries. If not specified, all entries are shown.
8. $show_updated — Optional. (int)
Whether to show last updated timestamp

Usage

  1. if ( !function_exists( 'get_linksbyname_withrating' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // The category name to use. If no match is found uses all 
  5. $cat_name = 'noname'; 
  6.  
  7. // The html to output before the link 
  8. $before = ''; 
  9.  
  10. // The html to output after the link 
  11. $after = '
    '; 
  12.  
  13. // The html to output between the link/image and its description. Not used if no image or show_images is true 
  14. $between = ' '; 
  15.  
  16. // Whether to show images (if defined). 
  17. $show_images = true; 
  18. $orderby = 'id'; 
  19.  
  20. // Whether to show the description if show_images=false/not defined 
  21. $show_description = true; 
  22.  
  23. // Limit to X entries. If not specified, all entries are shown. 
  24. $limit = -1; 
  25.  
  26. // Whether to show last updated timestamp 
  27. $show_updated = -1; 
  28.  
  29. // NOTICE! Understand what this does before running. 
  30. $result = get_linksbyname_withrating($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, $limit, $show_updated); 
  31.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",  
  2. $show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) { 
  3. _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); 
  4.  
  5. get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);