Forums

Blogroll lists don't show up (10 posts)

  1. erika_conn
    Member
    Posted 4 years ago #

    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

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    wp_get_linksbyname is deprecated. Change it to use wp_list_bookmarks instead.

  3. erika_conn
    Member
    Posted 4 years ago #

    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>
  4. moshu
    Member
    Posted 4 years ago #

    How weird is that?

    Hmmm... Don't you have "Blogroll" twice in your code above?

  5. Otto
    Tech Ninja
    Posted 4 years ago #

    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>
  6. erika_conn
    Member
    Posted 4 years ago #

    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

  7. Otto
    Tech Ninja
    Posted 4 years ago #

    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".

  8. erika_conn
    Member
    Posted 4 years ago #

    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

  9. markaid
    Member
    Posted 3 years ago #

    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?

  10. rshartist
    Member
    Posted 3 years ago #

    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');
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic