Support » Fixing WordPress » Dropdown Fix?

  • If you view my page in IE the dropdown box for the categories is messed up. The categories are not in the box, but this only happens in IE.

    Here is the code for it:
    <form id="catform" action="<?php echo $PHP_SELF ?>" method="post">
    <p style="margin: 0px; padding: 0px;"> <select id="cat" onchange="submit(this.form);">
    <option value="">Select One</option>
    <?php dropdown_cats(); ?>


Viewing 6 replies - 1 through 6 (of 6 total)
  • Anyone?

    You’re trying to add extra code to the dropdown_cats(); function, and it won’t work. I was curious to where you got this idea, and I assume you got it from the Codex:

    Bleh. I’m not sure what planet the person is who added those instructions to the page, but it’s wrong. He not only suggests you nest a <select> tag with in another, but also says it will work! I attempted to write some JavaScript to get what you want accomplished, but it appears the onChange event doesn’t work the same way embedded as it does inline. For what you want to do, you’d have to modify the core dropdown_cats(); function.

    See but that thing I don’t understand is why it works for the archives and not for the categories. It also works in Firefox, but not in IE

    It doesn’t work like wp_get_archives() with the ‘format=option’ because dropdown_cats is much less complicated and does not have the features wp_get_archives does. wp_get_archives() with that option I mentioned outputs each archive section enclosed in <option> tags, without the <select> tags. It would make sense to deprecate dropdown_cats() and implement a ‘format’ option type in addition to the four possible values similar to wp_get_archives(). I checked just to be sure, it’s not in the latest svn checkout. I’ll file a bug in Trac for this.



    No being able to control the <select> using the dropdown_cats() was stupid to begin with. I don’t understand why WordPress isn’t constant in his flexibility (the wp_get_archives() is a perfect example).



    I am very interested in this as well. The site I’m working on,, uses the drop down cats, but some of the cat names are long enough to cause the menu to extend off the page in FF/Mozilla, and causes the “Go” button to wrap under the menu in IE.

    After extensive searches, several refs to using ‘select’ but I have no idea where or how to implement that.

    If I knew where/what to edit in any of the core files, I’d give it a shot (and be ready to ftp the backup asap).

    What I want to do – set the width of the drop down cats menu. This is what I have;

    <form action=”<?php echo $PHP_SELF ?>”method=”get”>
    <p style=”padding: 0px; margin: 0px;”> <?php dropdown_cats(); ?><input type=”submit” name=”submit” value=”GO”/></form>

    This works, just looks terrible.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Dropdown Fix?’ is closed to new replies.