Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › DROPDOWN ISSUE for CPT & Custom Fields:
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 4 weeks ago.
- AuthorPosts
- March 2, 2023 at 9:35 pm #41609
DROPDOWN ISSUE for CPT & Custom Fields:
I created a search filter called Professionals in this wordpress website. The filter can be found on the frontend page: https://kjk.com/people-test/
As you will see, the first name and last name text fields are working fine. But my dropdown filters are not filtering correctly. They pull a list of professionals, but they aren’t related to the associated custom filter. The search is based off of a CPT called Professionals and custom fields for Professionals “title” and “office”. I’ve gone through your custom fields tutorial, but there is no example of a dropdown so I’m wondering if I just have the setup incorrect?
March 3, 2023 at 2:05 pm #41616Hi,
Thank you very much for the details!
I checked the configuration, and found a minor issue causing the problem. The custom field comparator was set to “EQUALS”, which is for numeric values, while these are strings. I changed them to EXACTLY LIKE, and that resolved the problem.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 3, 2023 at 7:18 pm #41624Perfect! Thanks!
March 4, 2023 at 4:30 pm #41631You cannot access this content. 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.