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

DROPDOWN ISSUE for CPT & Custom Fields:

Home Forums Product Support Forums Ajax Search Pro for WordPress Support DROPDOWN ISSUE for CPT & Custom Fields:

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41609
    liberiahliberiah
    Participant

    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?

    #41616
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.

    #41624
    liberiahliberiah
    Participant

    Perfect! Thanks!

    #41631
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

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