* as value

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 8 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6470
    Mte90
    Mte90
    Participant

    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.

    #6471
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Try leaving it as an empty value, like so:

    ||All
    sample_value1||Sample Label 1
    sample_value2||Sample Label 2
    sample_value3||Sample Label 3

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #6472
    Mte90
    Mte90
    Participant

    Okay I’ve understand the problem, if there is ** the value is not selected (I’ve checked in the html).

    #6473
    Mte90
    Mte90
    Participant

    Okay for fix that problem in asp.shortcode.custom_fields.php on line 40:

    Replace:
    strpos(‘**’, $matches[2])
    With
    strpos($matches[2], ‘**’)

    #6474
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You 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

    echo strpos($matches[2], '**');
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #6475
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Ah, 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 :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.