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