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 3 years, 2 months ago.
- AuthorPosts
- March 26, 2020 at 10:54 am #26375
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…)March 26, 2020 at 2:43 pm #26377Hi,
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 optionsIf 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 :)
March 26, 2020 at 4:42 pm #26382Hi Ernest,
Thank you, the gist worked.
Should I keep a copy of the gist to replace the file after updating the plugin?Thanks
March 27, 2020 at 9:50 am #26385Hi,
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 :)
- AuthorPosts
You must be logged in to reply to this topic.