Support » Fixing WordPress » Blogroll lists don’t show up

  • erika_conn

    (@erika_conn)


    I am using Tulip Time for my theme. For some unknown reason, on the first page I have the heading “blogroll” but no listings underneath. In Admin Panel I show all the links listed but they don’t show up in the sidebar.

      <li class=”listHeader”><h2><?php _e(‘Blogroll’); ?></h2>
      <?php wp_get_linksbyname(‘Blogroll’, ‘before=

    • &after=
    • &orderby=name&show_description=0&show_updated=1′) ?>

    http://food911.ceconn.com

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    wp_get_linksbyname is deprecated. Change it to use wp_list_bookmarks instead.

    Thread Starter erika_conn

    (@erika_conn)

    Thanks, Otto, that worked except now I have 2 Blogroll headers. Only one set of lists, though. How weird is that? The following is from Sidebar.php

    <ul><li class="listHeader"><h2><?php _e('Archives'); ?></h2>
            <?php wp_get_archives('type=monthly'); ?>
        </ul>
    <ul><li class="listHeader"><h2><?php _e('Blogroll'); ?></h2>
            <?php wp_list_bookmarks('Blogroll', 'before=
    <li>&after=</li>
    &orderby=name&show_description=0&show_updated=1') ?>
        </ul>
    moshu

    (@moshu)

    How weird is that?

    Hmmm… Don’t you have “Blogroll” twice in your code above?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Also, did you read the page I sent you to? Because you’re not calling wp_list_bookmarks correctly either.

    Try this:

    <ul><li class="listHeader"><h2><?php _e('Archives'); ?></h2>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    <ul><?php wp_list_bookmarks('before=<li>&after=</li>&orderby=name&show_description=0&show_updated=1');
    ?>
    </ul>

    Thread Starter erika_conn

    (@erika_conn)

    The Archives work fine but I don’t understand why I get Blogroll twice. There’s only one listed

    <ul><li class="listHeader"><h2><?php _e('Blogroll'); ?></h2>
            </ul>
    <ul><?php wp_list_bookmarks('before=
    <li>&after=</li>
    &orderby=name&show_description=0&show_updated=1');
    ?>
        </ul>

    I appreciate your help very much Otto. Thank you

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    wp_list_bookmarks does more than just display the bookmarks. It sorts them into their categories and the second “Blogroll” is the name of that category. This way, you can rename the category to instantly change the name of it on the sidebar. Or add a new category with new links and instantly have that appear on the sidebar.

    Did you try the code I posted above? That code would eliminate the extra “Blogroll”.

    Thread Starter erika_conn

    (@erika_conn)

    It’s done. Thank you one million. I guess I didn’t do it right before but now that second Blogroll is gone.

    Thanks Otto42

    I’m not sure why but my homepage has no categories, archives or blogroll.
    It only has recent comments
    Anyone know why?
    I did some changes to get a different header in a file but I can’t remember which one or how I got to it?
    Anyone know what this file is called? and if it is related to other problem of no categories/archives/blogroll not showing?

    I tried use Otta42’s code, but it did not work for my blog. Use this if you had tried otta42’s code first and doesn’t work.

    <li class="listHeader"><h2><?php _e('Archives'); ?></h2>
    <ul><?php wp_get_archives('type=monthly'); ?>
    </ul></li>
    
    <?php wp_list_bookmarks
    ('before=<li>&after=</li>&orderby=name&show_description=0&show_updated=1');
    ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blogroll lists don’t show up’ is closed to new replies.