Forums › Forums › Search & Filter Pro › Custom taxonomy search with multi-select not working
Tagged: custom taxonomy multi select
- This topic has 4 replies, 2 voices, and was last updated 10 years, 9 months ago by
Anonymous.
-
Anonymous(Private) April 29, 2015 at 11:46 am #16123
Hi
Just updated to WP 4.2 and S&F 1.4.2 and some of our custom search criteria have stopped working.
e.g. we have a custom taxonomy assoc_people and have a search form using multi-select on assoc_people. When an entry is selected and the form run the results set is all possible records rather than just those with assoc_people=slected_entry
The generated url is now of the form ?sfid=65535&=aitkens-mr-ian-63534
where as it used to be of the form ?sfid=65535&_sft_assoc_people=aitkens-mr-ian-63534In testing I noticed that if I change input type to be dropdown then the search generates the full url and works fine.
Can you help?
Thanks
MarkAnonymous(Private) April 29, 2015 at 12:13 pm #16128Hi
Just done some digging and it looks like a problem in \public\includes\class-search-filter-generate-input.php public function generate_wp_multiselect
line 47 reads:
$returnvar = ‘<select multiple=”multiple” name=”‘.$args[‘name’].'[]” class=”postform”‘.$elem_attr.’>’;
should read:
$returnvar = ‘<select multiple=”multiple” name=”‘.$name.'[]” class=”postform”‘.$elem_attr.’>’;Hope this helps.
MarkRoss Moderator(Private) April 29, 2015 at 8:25 pm #16169Hey Mark
Thanks for the update. This latest version was rushed in hopes that it would fix things for users before I went away.
Yeah, I had to change
$args['name']to something like$args['sf_name']to get it all working niceWorking on this update now 🙂
Thanks
Ross Moderator(Private) April 30, 2015 at 7:42 pm #16299The update is out – (v1.4.3) – let me know if this resolves your issues.
Thanks
-
AuthorPosts