WordPress.org

Support

Support » How-To and Troubleshooting » can anyone tell me how to alphabetize link categories?

can anyone tell me how to alphabetize link categories?

  • and if so, what in all this:

    <h3><?php _e('blogroll','bnOutThere'); ?></h3>
    <?php $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    ?>
    <h4 id="linkcat-<?php echo $link_cat->cat_id; ?>"><?php echo $link_cat->cat_name; ?></h4>
    <ul>
    <?php wp_get_links($link_cat->cat_id); ?>
    </ul>
    <?php } ?>

    does a girl change to get them to sort by name and not ID? every time I try I get syntax errors….I’m floundering here. hoo boy.

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can anyone tell me how to alphabetize link categories?’ is closed to new replies.