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

search in acf label

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47106
    smarteriptvsmarteriptv
    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

    #47118
    Ernest MarcinkoErnest 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.

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