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

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14723
    moses_mutua
    moses_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

    Attachments:
    You must be logged in to view attached files.
    #14726
    Ernest Marcinko
    Ernest 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:

    Sample, Label 1||Sample, Label 1

    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

    Best,
    Ernest Marcinko

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


    #14727
    moses_mutua
    moses_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 Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.