Viewing 6 replies - 1 through 6 (of 6 total)
  • In your sidebar.php, replace the code you have for links with this:

    <?php get_links('-1', '<li>', '</li>', '', 0, 'name', 0, 0, -1, 0); ?>

    I recommend commenting out the existing code just in case this fix doesn’t work for you and you can quickly change back.

    As for the categories question, I’m afraid I can’t help you there.

    Can you not manage that under links –> manage links, order by: then a drop down menu should allow for ‘name’.
    Edit, guess not, only displays that way in the admin panel
    As far as category
    <code><?php list_cats(TRUE, ' ', 'name'); ?>

    Thread Starter evenglen

    (@evenglen)

    it didnt work

    which one?

    This will sort everything alphabetically:
    <?php get_linksbyname('', '<li>', '</li>', '<br />', FALSE,
    'name', TRUE); ?>

    Where if you wanted to, you could use the first parameter, default ‘ ‘, and put the category name there. If you have 4 categories, you would have 4 lines of code, each with their own category. Thereby listing each list in an alphabetical order.
    I’d like to see one of the pros chime in, maybe I’m not reading the template tags correctly.

    I know this is way old, but I got it. You have to go into “links” in the admin panel, then go to “categories” and then “edit” way on the right. From there you can adjust everything you need. For some reason WP defaults the list to “random” order.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Links in ABC order?’ is closed to new replies.