WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blog Roll not showing up (3 posts)

  1. spligum
    Member
    Posted 6 years ago #

    I am having a problem with my Blog Roll. It wasn't appearing on its own. So I added the code below. It works but it doesn't look like the other lists of links, for example the Meta sidebox below it. The Blog Roll didn't show up in the default WordPress theme so I was wondering if there is another way besides using the code below to get it to show up.

    The blog - sids.motd.org

    <div class="sidebox">
    <h1>Blogroll</h1>
    <ul class="sidemenu">
    <?php get_links(); ?>
    <li class="sidemenubottom">

    </div>

  2. moshu
    Member
    Posted 6 years ago #

    Because that template tag that you are using does NOT put the items between <li> and </li>
    Read the documentation before posting:
    http://codex.wordpress.org/Template_Tags/get_links

  3. spligum
    Member
    Posted 6 years ago #

    I think I get it but I am not sure...

    It's not being displayed in an unordered list, even after using the docs you sent me to.

    Here is what I now have:

    <div class="sidebox">
    <h1>Blogroll</h1>
    <?php get_links(2, '<li>', '</li>'); ?>
    </div>

    Whenever I add echo to the end only the header of my blog appears.

    UPDATE!!: I got it working. I just needed to add the UL tags with a class defined. It was in an un-ordered list but wasn't formated.

    Thanks for the link to docs :-)

Topic Closed

This topic has been closed to new replies.

About this Topic