Support » Plugins » Links sort order forced

  • 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thanks – good suggestion

    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.

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

    Alpha Numeric ordering .
    I did it here…

    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

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

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