Multiple Select Box in Wordpress Custom Meta Box Behaves and looks like text input
I am trying to add a select dropdown with multiple="multiple" in a custom meta box, and the select is appearing with fancy styling, is not clickable, and is not the size I am setting:


    <select multiple="multiple" size="3" name="location">
    <option value="">Please select</option>
    <option value="0">All</option>
    <?php
    foreach(get_terms('town',array('get' => 'all')) as $term)
    {
    if (!empty($term->name))
    {
    $str .= "<option value='" . $term->term_id . "'";
    $str .= (is_object_in_term($post->ID, "town", $term->name)) ? " selected>" : ">";
    $str .= $term->name . "</option>";
    }
    
    } echo $str;?></select>

What I get is more like a text input box in appearance, although firebug shows the code is correct for a select box multiple complete with options. Any help gratefully received.


Multiple Select Box in Wordpress Custom Meta Box Behaves and looks like text input
===

I am trying to add a select dropdown with multiple="multiple" in a custom meta box, and the select is appearing with fancy styling, is not clickable, and is not the size I am setting:


    <select multiple="multiple" size="3" name="location">
    <option value="">Please select</option>
    <option value="0">All</option>
    <?php
    foreach(get_terms('town',array('get' => 'all')) as $term)
    {
    if (!empty($term->name))
    {
    $str .= "<option value='" . $term->term_id . "'";
    $str .= (is_object_in_term($post->ID, "town", $term->name)) ? " selected>" : ">";
    $str .= $term->name . "</option>";
    }
    
    } echo $str;?></select>

What I get is more like a text input box in appearance, although firebug shows the code is correct for a select box multiple complete with options. Any help gratefully received.

