<select name="tid[]"> <?php $taxonomy_terms = get_terms('school_type'); if(!empty($taxonomy_terms)&&!is_wp_error($taxonomy_terms)){ foreach($taxonomy_terms as $taxonomy_term): ?> <option value="<?php echo $taxonomy_term->term_id; ?>"><?php echo $taxonomy_term->name; ?></option> <?php endforeach ;}?> </select>