• Hi Guys,

    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:

    [CODE]
    <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>[/CODE]

The topic ‘Multiple Select in Custom Meta Box’ is closed to new replies.