Links sort order forced (7 posts)

  1. Rik
    Posted 10 years ago #

    Would love to see a hack or PlugIn that would allow me to set the order for links rather than have them sorted by some parameter. It would seem that if a field could be aded to the link for a sort number, then I could enter a number and sort on it.

  2. Mark McKibben
    Posted 10 years ago #

    Or you could just pull the links using get_linksbyname and set the order parameter to ID and just enter the links in the order that you want them to appear.

  3. Rik
    Posted 10 years ago #

    Thanks - good suggestion

  4. Rik
    Posted 10 years ago #

    That was the ticket.

    In case anyone else is interested in this, here is how my code ended up looking:

    <li id=""><?php _e('Two Way Radio Directory:'); ?><br/>
    <?php get_linksbyname('Two Way Radio Directory', '', '
    ', '', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?><br/>
    <li id=""><?php _e('Yahoo Groups - Radio:'); ?><br/>
    <?php get_linksbyname('Yahoo Groups - Radio', '', '
    ', '', FALSE, 'name', FALSE, FALSE, -1, FALSE); ?>

    You can see the results in the right column here:

    Note that the first group of links is sorted by ID, the order in which they were entered.

    The second group of links is ordered by name.

    Thanks for the help.

  5. tov
    Posted 10 years ago #

    Another simple solution...
    Number your links
    1- My Wife
    2- My Brother
    3- Useful Link
    4- etc

    Alpha Numeric ordering .
    I did it here...

  6. froman118
    Posted 9 years ago #

    Just letting people know that I have created a plugin to address this very issue by allowing you to manually set the order of link categories and links. Check it out at My Link Order

  7. obitches
    Posted 9 years ago #

    Rik: your suggestion of get_linksbyname (.....id...) worked PERFECTLY! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.