Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › * as value
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 11 months ago.
- AuthorPosts
- October 27, 2015 at 11:06 am #6470
I’ve a dropdown with many value but also a default value All but i don’t understand how to write a value like this.
I’ve tried with a blank value or an * but nothing.
October 27, 2015 at 11:08 am #6471Try leaving it as an empty value, like so:
||All
Best,
sample_value1||Sample Label 1
sample_value2||Sample Label 2
sample_value3||Sample Label 3
…
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2015 at 11:12 am #6472Okay I’ve understand the problem, if there is ** the value is not selected (I’ve checked in the html).
October 27, 2015 at 11:16 am #6473Okay for fix that problem in asp.shortcode.custom_fields.php on line 40:
Replace:
strpos(‘**’, $matches[2])
With
strpos($matches[2], ‘**’)October 27, 2015 at 11:17 am #6474You are right, there is a bug, I just found it.
wp-content/plugins/ajax-search-pro/includes/views/asp.shortcode.custom_fields.php on line 40:
echo strpos('**', $matches[2]);
it should be
Best,echo strpos($matches[2], '**');
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2015 at 11:18 am #6475Ah, ok, you found it too 🙂
I’m adding it to the next release bugs list.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.