WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_links and WP 2.1 (9 posts)

  1. brendt
    Member
    Posted 7 years ago #

    With WP 2.1, either wp_get_links quit working or the link category numbers were lost. I have separate sections in which I show separate groups of links (with categories that have names and USED to have numbers, too) by using something like:

    <?php wp_get_links(4); ?>

    Now they all come up blank.

    So which is it (broken function or lost numbers)? And how do I fix it?

  2. moshu
    Member
    Posted 7 years ago #

    Try to check the catgeory ID#s since 2.1 has a different structure for link categories - they are now together in one table with the post categories and consequently, their ID# gets changed during the update.

  3. dcfitzg
    Member
    Posted 7 years ago #

    I was having this same problem and once I changed the category ID# it worked perfectly!

  4. brendt
    Member
    Posted 7 years ago #

    OK, I did that, and my links re-appeared. But the descriptions also now appear as text right after the link (in addition to popping up when you mouse-over an entry).

    So does 2.1 preclude having descriptions for blogroll links that only appear when you mouse-over?

  5. brendt
    Member
    Posted 7 years ago #

    bumping to improve freshness :-)

  6. oakmonster
    Member
    Posted 6 years ago #

    Hi there. Same issues. Upgrade and lost my blogroll.
    But I'm a complete and total idiot. Not a programmer by any extent but I know enough to follow instructions well. :)

    I know how to get into my PHPdatabase to change things. (Just got my pages back, yey!) But where and what exactly do I need to do to fix this ID# issue and get my blogroll back?

    My site: http://www.oakmonster.com

    Any help would be greatly appreciated. Thank you!

  7. whooami
    Member
    Posted 6 years ago #

    look at your current theme's sidebar.php.. compare that to the sidebar.php thats included with the default theme in the latest zip.

    The new template tag is used in the updated themes in the zip

  8. Root
    Member
    Posted 6 years ago #

    You have to add back each link to Cat blogroll.

  9. oakmonster
    Member
    Posted 6 years ago #

    Sweet. Thanks for the tips, guys!

    Looking at the default template? Why didn't I think of that! Duh! Thanks whooami!

Topic Closed

This topic has been closed to new replies.

About this Topic