Link Category Order (12 posts)

  1. matt7267
    Posted 10 years ago #

    Considering all I have figured out on my own (with the help of others) I feel stupid for even asking this one, but How Do I change The Order Of Link Categories.
    My Blog is at http://www.hometownquotes.com/blog and I am trying to change the order of the categories on the right (there are three so far). It is defaulted to alphabetical. I have tried a few ways, none with success.
    Any help is appreciated. Thanks!

  2. sasha
    Posted 10 years ago #

    Found this in the wiki:

    How do I change the sort order of my links?

    Make these changes to INDEX.PHP
    Sort Links By...
    Date / Time Updated:

    <?php get_links(-1, '', '', '', 0, '_updated', 0, 0, -1, -1)?>


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

  3. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Or have a space before a link cat name when you enter it. That will lift it to the top of the list. More spaces means you can adjust to suit.

  4. matt7267
    Posted 10 years ago #

    Both good ideas. Thank you both!

  5. corin
    Posted 10 years ago #

    Wow, spaces before the name is awesome! When displayed on the site the space is removed but that cat. immediately gets pushed to the top!

    Good thinking!

  6. matt7267
    Posted 10 years ago #

    Yeah thanks for that idea...so simple and yet very effective. I almost didnt try it for fear of spaces before the words, but WOW!

  7. mrinferno
    Posted 10 years ago #

    awesome, i was just looking for the answer to this very question. the spaces trick is pretty rockin'.

    no need to change any code in the theme or stylesheet.


  8. TechGnome
    Posted 10 years ago #

    Actualy I personaly think it's a stupid way to have to do it. There should be a way to set the order in a more logical manner.

    But what do I know? I'm just a gnome.


  9. mrinferno
    Posted 10 years ago #

    i agree, it should be an option to sort the catorgies by name, number, etc...just like, i don't know maybe the same way you can set the "Sort Order" for the links within a category...maybe a good feature for 1.5.1 ;-)

  10. Kitt
    Posted 9 years ago #

    I have somewhat addressed the issue in this thread:


    PS, so far i haven't created a plugin to solve it yet.

  11. drp
    Posted 9 years ago #

    Ok, so add spaces in the WP admin under Link Categories? I've tried that, but they aren't moving. What am I doing wrong?

  12. froman118
    Posted 8 years ago #

    If anyone is looking for a solution to the problem of ordering links and their categories try my plugin, My Link Order. It let's you set an explicit order. None of this extra spaces stuff.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.