• For some reason my link descriptions disappeared after I upgraded. Anyone know a solution? I’m using the php get_links_list tag. It seems the link category options where you can turn the descriptions on and off is no longer there.

Viewing 6 replies - 16 through 21 (of 21 total)
  • I’ve just upgraded from 2.0.5 to 2.1 and am using the default theme. wp_list_bookmarks is in sidebar.php, but link descriptions still do not show. There doesn’t seem to be any way to sort the links anymore either.

    Does anyone know how to fix this?

    Oops, missed the point about the description before!

    I used this line in the default theme’s sidebar.php
    <?php wp_list_bookmarks('show_description=1'); ?>

    Thanks, Michael. That worked perfectly to display the descriptions.

    Thanks Michael, that is an enormous help.

    I thought I’d post what I did for others to see where the modification is supposed to go:

    In sidebar.php of your chosen theme find:

    <!-- Begin - Links from the 'Links  Manager'-->
    <?php
    	$link_cats = $wpdb->get_results('SELECT cat_id, cat_name FROM ' . $wpdb->categories . ' WHERE link_count > 0');
    foreach ($link_cats as $link_cat) {
    ?>
    <div class="left-widget-title"
    	id="linkcat-<?php echo $link_cat->cat_id; ?>">
    <?php echo $link_cat->cat_name; ?>
    </div>
    <div class="left-widget">
    	<ul>
    /* Add Michael's line here */
    	<?php wp_list_bookmarks('show_description=1'); ?>
    /* Comment out the original wp_get_links which no longer works
    /*        <?php	wp_get_links($link_cat->cat_id); ?> */
    	</ul>
    </div>

    and save the resultant.

    Next put the links widget where you want it, and voila!

    In 2.2.1 I modified widgets.php in “includes” to this:

    wp_list_bookmarks(array(
    ‘title_before’ => $before_title, ‘title_after’ => $after_title,
    ‘category_before’ => $before_widget, ‘category_after’ => $after_widget,
    ‘show_images’ => true, ‘class’ => ‘linkcat widget’,
    ‘show_description’ => $after_title
    ));

    The “Show Description” line is what I added. Worked for me.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Link Descriptions disappeared after upgrading to 2.1’ is closed to new replies.