search in acf label

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47106
    smarteriptv
    smarteriptv
    Participant

    Hi,
    I have an ACF (advanced custom fields) plugin on my website.
    In the choices field, there is an option to specify both a value and a label. (I’ve attached a screenshot from ACF options.)

    I’ve created some choices in this way:
    englishName: persianName
    Example:
    red: قرمز

    I’ve configured the Ajax Search Pro plugin in the way explained in this documentation:
    https://documentation.ajaxsearchpro.com/general-settings/search-in-custom-fields

    Now it just searches in value and doesn’t search in label.
    For example, I can search “red”, but I can’t search “قرمز”.
    How can I make Ajax search pro to search in labels?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #47118
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I recommend switching to the index table engine and index the field values. It will try to explicitly get the field labels and index them to be searchable.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.