• Resolved Harvey

    (@harvey)


    Hello everyone!

    I just upgraded my blog to 2.1 from the previous latest version.

    Everything seems fine except for the list of links that were once in my sidebar.

    The code I used in the sidebar is here… It is divided up so that a few categories of links would be displaced under different headers in the sidebar.


    <div id=blogroll">
    <h3>Unrelated Fun</h3>
    <ul>
    <?php get_links(2, '<li>', '</li>', '-'); ?>
    </ul>
    </div>
    <div id=blogroll">
    <h3>Links</h3>
    <ul>
    <?php get_links(3, '<li>', '</li>', '-'); ?>
    </ul>
    </div>
    <div id=blogroll">
    <h3>Personal</h3>
    <ul>
    <?php get_links(5, '<li>', '</li>', '-'); ?>
    </ul>
    </div>

    I saw in another thread that the call for links was changed a bit in 2.1, to something like this…

    <?php wp_list_bookmarks(); ?>

    However when I tried this code, it didn’t quite work…

    Any ideas? Or, should this code be working for me?

    Thanks for any help!

    EDIT: The site is here. http://www.japannewbie.com and you can see on the right hand side the headers with nothing under them.

Viewing 4 replies - 1 through 4 (of 4 total)
  • There are several pleas for help on this disappearing links question, but none of the answers seem to work.
    Surely someone must have got it working by now.
    Like Harvey, I’ve also tried:
    <?php wp_list_bookmarks(); ?>
    which doesn’t make any difference.
    I’ve also tried:
    <?php get_links(2,); ?>
    where the number is the same as my category id, but that doesn’t work either.
    Can anyone help with this?

    Thread Starter Harvey

    (@harvey)

    I am still out of luck on this one, what would steps should be taken just to rebuild the links from scratch?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    wp_list_bookmarks() does work, but you kinda have to define what you’re trying to do. A link to your sites where you’re using wp_list_bookmarks() would help. That way, I could see what it is doing, in context, and tell you how to change the call to it to make it do what you want it to do.

    Harvey: get_links() still works, however your category numbers most likely changed. Go to Manage->Categories and find out what the new category ID’s are for your Link categories.

    Thread Starter Harvey

    (@harvey)

    Thanks Otto42, you’re right the version up just changed my Category ID’s! Case closed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vanishing Blogroll after 2.1 upgrade’ is closed to new replies.