WordPress.org

Support

Support » How-To and Troubleshooting » Show blogroll with pull-down menu

Show blogroll with pull-down menu

  • I want to show my blogroll with a pull-down menu, and when I choose the site from the list, the browser help me to open a new page to view, how can I do this? Thank you very much!!

Viewing 15 replies - 1 through 15 (of 19 total)
  • try this

    <li class="blogroll"><h2><?php _e('Blogroll:'); ?></h2>
    <form action="" name="pulldown2">
    <select name="mypulldown2" onchange="document.location=pulldown2.mypulldown2.options[selectedIndex].value">
    <option value="">Select Blog</option>
    <?php wp_get_links(); ?>
    </select>
    </form>

    Thanks dremation, but it just show the pull down with the word “select blog”, and no links can be shown!

    umm…..I forgot to close the
    <li> tag…did you forget to? This works for me.

    Sorry, dremation, close for what?

    the <li> you mean?

    Still can’t figure it out, anyone…?

    Same here. Have the drop-down but nothing listed in the drop-down. Can anyone help?

    Try this at the end..

    /li (in brackets)

    I tried that and nothing changed. < / li > (no spaces)
    Here is my code:
    <li class=”blogroll”><!–<h2><?php _e(‘Blogroll:’); ?></h2>–>
    <form action=”” name=”pulldown2″>
    <select name=”mypulldown2″ onchange=”document.location=pulldown2.mypulldown2.options[selectedIndex].value”>
    <option value=””>Select Blog</option>
    <?php wp_get_links(); ?>
    </select>
    </form>

    Are there something missing from dremation’s code?

    <form action=””> & <option value=””>??

    should be something, like this….


    <li class="blogroll"><h2><?php _e('Blogroll:'); ?></h2>
    <form action="" name="pulldown2">
    <select name="mypulldown2" onchange="document.location=pulldown2.mypulldown2.options[selectedIndex].value">
    <option value="">Select Blog</option>
    <?php wp_get_links(); ?>
    </select>
    </form>
    </li>

    anabelle, thanks, but still blank for those 2 fields?

    do you get the select blog title in the dropdown??

    anabelle:

    It only shows the “select blog” text, but no content when the drop down menu.

    Is the above code in full? Any missing from those 2 fields? Thx!

    Loggin to the admin –> links —> link categories

    edit the blogroll categorie.. and add in the fields:

    Before link: <option value="
    Between link and description: ">
    After link: </option>

    I don’t know if this will work and maybe it wont, but is worth the try, also if it works the text that will appear in the dropdown will be the description of the link, and not the link itself so you maybe will need to update your links descriptions.

    I’m just guessing that code out so please let me know if it worked, that would make me real happy.

    Good Luck

    anabelle,

    Unbelievable the drop down menu shows the page title now, but when I click it, nothing happened!

    However, if I change the following code:

    <select name=”mypulldown2″ onchange=”document.location=(document.forms.pulldown2.mypulldown2[document.forms.pulldown2.mypulldown2.selectedIndex].value)”>

    After I click the page title it directed to a dead page, which the link location shown: http://xxx/<a%20href=

    So what can I do next?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Show blogroll with pull-down menu’ is closed to new replies.
Skip to toolbar