WordPress.org

Ready to get started?Download WordPress

Forums

can anyone tell me how to alphabetize link categories? (2 posts)

  1. squalor
    Member
    Posted 7 years ago #

    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>

      <?php wp_get_links($link_cat->cat_id); ?>

    <?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!

  2. pizdin_dim
    Member
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags