Hello
Just realized, that my code does not the job as the checkboxes.
I use this code to create a multiselect list:
add_filter('ajwpqs_tax_field_checkbox', 'custom_checkbox_field','',9);
function custom_checkbox_field($html,$type,$exc,$hide,$taxname,$taxlabel,$taxall,$c,$divclass){
//here you can customize your checkboxes.
$eid = explode(",", $exc);
$args = array('hide_empty'=>$hide,'exclude'=>$eid );
$terms = get_terms($taxname,$args);
$html = '<div class="'.$divclass.' taxdropdown-'.$c.'"><label class="tax-label-'.$c.'">'.$taxlabel.'</label>';
$html .= '<input type="hidden" name="taxo['.$c.'][name]" value="'.$taxname.'">';
$html .= '<select id="taxselect-'.$c.'" name="taxo['.$c.'][term]" multiple class="chosen chzn-select"><option selected value="awpqsftaxoall">'.$taxall.'</option>';
foreach ( $terms as $term ) {
$html .= '<option value="'.$term->slug.'">'.$term->name.'</option>';
}
$html .= '</select><br>';
$html .= '</div>';
return $html;
}
Unfortunately the first selection gets only to the search query. What else is needed, so your code picks up all the selected terms in the multiselect list?