*/ ?>
get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories"); } else { $cats = get_categories("type=link&orderby=name&order=ASC&hierarchical=0"); } if ($cats) { foreach ($cats as $cat) { // Handle each category. // Display the category name echo '

' . $cat->cat_name . "

\n\t
    \n"; // Call get_links() with all the appropriate params if (substr(get_bloginfo('version'), 0, 3) < 2.1) { get_links($cat->cat_id,'
  • ',"
  • ","
    ", FALSE, 'name', TRUE, FALSE, -1, FALSE); } else { get_links($cat->cat_ID,'
  • ',"
  • ","
    ", FALSE, 'name', TRUE, FALSE, -1, FALSE); } // Close the last category echo "\n\t
\n\n"; } } ?>