This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Custom Label dropdown values with comma not searching

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom Label dropdown values with comma not searching

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14723
    moses_mutuamoses_mutua
    Participant

    Hi Support,

    I have Custom Label with a comma like so ‘Sample, Label 1’.
    When am creating Dropdown Values on Frontend Search Settings options ‘see attached’, how do I write it on values?
    On the front-end, it’s not picking any Value with a comma

    rgds

    #14726
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I’m not sure if I understand correctly. Do you have custom field values, that include comma?
    You can just simply write it there, and it should be treated as the option value, like so:

    [html]Sample, Label 1||Sample, Label 1[/html]

    and the value will be ‘Sample, Label 1’ in the query. I did a test, and I believe it should work:
    – Test post, with ‘drop_down_field’ and value ‘Sample, Label 1’: https://i.imgur.com/j4ufyJS.png
    – Test search: https://i.imgur.com/orCyUtK.png
    – Results: https://i.imgur.com/LbFbLF2.png

    #14727
    moses_mutuamoses_mutua
    Participant

    Hi,

    Yes it worked, I didn’t realise I could just use the name as is.

    BEFOR
    Banking_Insurance_&_Telecommunications||Banking, Insurance & Telecommunications

    AFTER
    Banking, Insurance & Telecommunications||Banking, Insurance & Telecommunications

    rgds

    #14728
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.