WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dropdown Blogroll for 2.1 (6 posts)

  1. lauralohr
    Member
    Posted 7 years ago #

    I have searched high and low to find dropdown blogroll code that uses wp_list_bookmarks. I am currently using the dropdown_get_links function, but it is not perfect in 2.1 (links are not updating from the admin menu and can only be updated in the sql database).

    Does anyone have any idea how to do this? I have tried so many different variations and I cannot seem to got right.

  2. lauralohr
    Member
    Posted 7 years ago #

    By the way, my blog is: http://www.lauralohr.com

    I am currently using the following code:

    <!-- Begin - Links I am Reading -->
    	   <div class="right-widget-title">Links I am Reading</div>
        <div class="right-widget">
    <type="text/javascript">
    <form name="Links_I_am_Reading">
            <select name="menu" onchange="MM_jumpMenu('parent',this,0)">
       <option value="">Select Link</option>
      <?php dropdown_get_links( 4, 'name','-1') ?>
      </select>
       </form></div>
       <!-- End -Links I am Reading -->

    I got close with this code, but I could not get everything to roll up:

    <!-- Begin - Links I am Reading -->
    <div class="right-widget-title">Links I am Reading</div>
        <div class="right-widget">
        <?php _e(''); ?>
       <ul><li>
    
    <form name="Links_I_am_Reading">
    <select name="menu" onchange="MM_jumpMenu('parent',this,0)">
    <?php wp_list_bookmarks('&categorize=1&category=25&orderby=name'); ?>
    
       <option value=""></option>
    
    </select>
    </form>
    
    </div>
       <!-- End -Links I am Reading -->
  3. lauralohr
    Member
    Posted 7 years ago #

    Bump.

  4. Mike Rouse
    Member
    Posted 6 years ago #

    I too am looking for an easy way to show blogrolls links as a dropdown in 2.3.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    There is basically no easy way to do this. The wp_list_bookmarks function was made to produce a list, not an option menu.

  6. Mike Rouse
    Member
    Posted 6 years ago #

    Well I managed to get a list to show using this code, but need to figure out how to do the onChange thingy:

    <form name="Links">
    <select name="List" style="width: 170px;">
    <option value="">Select Link</option>
    <?php wp_list_bookmarks('before=<option>&after=</option>'); ?>
    </select>
    </form>

Topic Closed

This topic has been closed to new replies.

About this Topic