• I am wondering if there is a way to modify the dropdown selector to be able to select multiple search terms. I know that I could use checkboxes for multiple terms but I have a huge list of terms and I don’t want all of them to display unless the user clicks on the dropdown item. More than likely the user will need to select more than 1 term so I am hoping that by holding (shift) or (ctrl) that they can select/highlight more than 1 term at a time.

    I have tried to add multiple="MULTIPLE" within the code of the uwpqsf-front-class.php file but it doesn’t seem to effect the front end form.

    Any help is much appreciated!!

    https://www.ads-software.com/plugins/ultimate-wp-query-search-filter/

Viewing 16 replies (of 16 total)
  • mojamba

    (@mojamba)

    OK, I think I have it resolved. Here is my new filter code:

    add_filter('uwpqsf_get_taxo','searchalltax','',3);
    function searchalltax ($taxo, $id, $gettaxo) {
    	$savetaxo = get_post_meta($id, 'uwpqsf-taxo', true);
    	for ($i=1; $i<=count($savetaxo); $i++) {
    		if ( $taxo[$i]['terms'][0] =="uwpqsftaxoall" ) unset ($taxo[$i]);
    	}
    	return $taxo;
    }

    This is only for taxonomies (thus using uwpqsf_get_taxo instead of uwpqsf_get_cmf) since I don’t use any custom meta fields but I think the code would be the same, just swapping out the tag (i.e., use uwpqsf_get_cmf).

Viewing 16 replies (of 16 total)
  • The topic ‘Select Multiple Terms Through a Drop Down? (Can't Use Checkbox)’ is closed to new replies.