Forums

Only first blogroll link shows in sidebar (2 posts)

  1. Phran
    Member
    Posted 5 years ago #

    This is an odd issue. . .
    After updating to 2.1.3, my sidebar links no longer work. Only the first one I added appears on the site, which you can see through this link. All the blogroll links are set to "visible".

    In the sidebar.php file, I have:

    <div class="title"><?php _e('Links'); ?></div>
    <?php get_links(-1, '', '', ' ', true,'id', false, 10, true ); ?>

    I have tried the following codes:

    <?php get_links_list(); ?>
    
    <?php wp_list_bookmarks(); ?>

    Both worked, but both also produced a list totally separate from all the other formatting on my site, and also showed an extra "blogroll" header.

  2. Phran
    Member
    Posted 5 years ago #

    Hah! I win. There just wasn't enough code. . . it was confusing the browser that not all values were filled in.

    This is the page that solved the issue:
    http://codex.wordpress.org/Template_Tags/get_links

    This is the code that worked:
    <?php get_links(-1, '', '
    ', ' ', true,'id', false, false, -1, false, true ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic