- March 26, 2020 at 10:54 am #26375
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…)March 26, 2020 at 2:43 pm #26377
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,
If you like my products, don't forget to rate them on codecanyon :)
March 26, 2020 at 4:42 pm #26382
Thank you, the gist worked.
Should I keep a copy of the gist to replace the file after updating the plugin?
ThanksMarch 27, 2020 at 9:50 am #26385
You must be logged in to reply to this topic.