Missing ACF fields from the search in selected custom fields

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Missing ACF fields from the search in selected custom fields

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26375
    Pyro68
    Pyro68
    Participant

    Hi,
    I have some missing fields from the select custom fields.

    I have many fields that contain the word ‘city’, when I search for it I don’t see all the fields that contain it.
    For example, I have a field named ‘city_id’ and a field named ‘city’.
    When I search ‘city’, ‘city_id’ does not appear. if I search ‘city_id’ it does appear.
    I’m trying to find the field named only ‘city’ but searching for either ‘city’ or ‘_city’ comes up with different fields than this one.
    I can not give full access to the site right now, but I suspect it is a limit on the number of results returned when I search under ‘selected custom fields’
    (No modifications were made to the plugin itself…)

    #26377
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Yes, I think you are correct here, it is very likely the limit and probably the incorrect ordering as well, as I checked the source now.
    Well, if you cannot add access, I can only guess, but here is a solution you can try via overriding one of the files:

    1. Make sure to have back-up first
    2. Open up the wp-content/plugins/ajax-search-pro/backend/settings/class/wd_cf_search_callback.class.php file on your server
    3. Replace it’s contents with this
    4. Save, and reload the search options

    If all goes well, typing in the “city” should give you the “city” custom field first.

    Best,
    Ernest Marcinko

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


    #26382
    Pyro68
    Pyro68
    Participant

    Hi Ernest,
    Thank you, the gist worked.
    Should I keep a copy of the gist to replace the file after updating the plugin?

    Thanks

    #26385
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    No, it is fine, I have already included this fix in the next update 🙂

    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.