How to Sort Link Categories? (12 posts)

  1. sorenson2743
    Posted 11 years ago #

    There's the default "BlogRoll" links category, and I have added a new one, "Site Links". I would like to have the BlogRoll category of links appear after the Site Links category of links for now and, in the future, to always have the BlogRoll category at the bottom of the link categories. For when I add, say, "Friend's Links" or whatnot, downstream.

    So the question for now is, how do I re-sequnce the link categories so that "BlogRoll" is always the last category of links displayed?

    Be gentle, I'm not too php/css proficient. I'm using v1.5.1.2 and the Rhapsody in Blue theme, on an off-line test server (Suse 9.2) sitting here beside me, with everything working fine so far. Thanks in advance.

  2. Lorelle
    Posted 11 years ago #

    I believe that this may help you:

  3. sorenson2743
    Posted 11 years ago #

    Thanks for the response. Perhaps I didn't make myself clear. I have no problem sorting links within a category of links. What I want to do is sort the appearance of those categories in the sidebar (top to bottom) differently.

    WP always seems to put the BlogRoll category first. I want it last of all the link categories. That is, instead of:
    - brogroll
    - next category #2
    - next category #3

    I need it sorted this way (top to bottom):
    - next category #3 (or #2, it doesn't matter)
    - next category #2 (or #3, it doesn't matter)
    - blogroll (always the last category of links in the sidebar.

    Does anyone know if this can be done, and how? TIA.

  4. sorenson2743
    Posted 11 years ago #

    BTW, I thought that if I just deleted all the links in BlogRoll, then deleted the BlogRoll category, then I would be off to the races. I can delete all those links, but WP won't let me delete the BlogRoll category.

  5. moshu
    Posted 11 years ago #

    It seems the Link Categories are displayed in alphabetical order. Rename the blogroll "zogroll" ;)

  6. Michael Bishop

    Posted 11 years ago #

    <?php get_links_list('_id'); ?>Will revese order your links list, thus blogroll, with the id of 1, coming last.

  7. sorenson2743
    Posted 11 years ago #

    That's a neat one! Thanks.

    I assume that there's no way to change the ID associated with link categories, so one could m0re finely-tune what appears, where?

    I would think that it would be a desireable feature in WP.

  8. stchatterbox
    Posted 11 years ago #

    Oh thanks, I've encounter the same problem.

    But there's a question that I'm quite puzzle about since I'll be adding a lot more category links.

    For Example, I have Categories 1-10 [ie, will be identified as id 1,2,3,...10]

    then I add category and identified as 11, but I want to add it between 2 and 3, how can I do this? Or is there another way to change the ID number of my categories?

    Thanks very much

  9. stchatterbox
    Posted 11 years ago #

    Some errors....:(

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

    Try this (example) tag:

    <li id="linkage">Site Linkage
    <?php wp_get_links(1); ?>

    The number in brackets is the ID of the link group.
    You need more than one tag
    You can put each link cat exactly where you want
    You can style each link cat exactly as you wish

  11. stchatterbox
    Posted 11 years ago #

    i don't mind to do more tags if it's necessary.

    -wanna know if i need to do any changes in admin--->link-->link categories

    and select the appropriate Sort Order:


  12. bokinuk
    Posted 10 years ago #

    Post cancelled :(

Topic Closed

This topic has been closed to new replies.

About this Topic