get_links ( $category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name', $show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true )

  • (int) category The category to use. If no category supplied uses all
  • (string) before the html to output before the link
  • (string) after the html to output after the link
  • (string) between the html to output between the link/image and its description. Not used if no image or show_images == true
  • (bool) show_images whether to show images (if defined).
  • (string) orderby 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.
  • (bool) show_description whether to show the description if show_images=false/not defined.
  • (bool) show_rating show rating stars/chars
  • (int) limit Limit to X entries. If not specified, all entries are shown.
  • (int) show_updated whether to show last updated timestamp
  • (bool) echo whether to echo the results, or return them instead
  • (null|string)
Defined at:


Gets the links associated with category by id.

Related Functions

get_link, wp_get_links, get_plugins, get_links_list, edit_link

Top Google Results

User discussions

wpseek mobile