DROPDOWN ISSUE for CPT & Custom Fields:

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 Ernest Marcinko 4 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41609
    liberiah
    liberiah
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

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


    #41624
    liberiah
    liberiah
    Participant

    Perfect! Thanks!

    #41631
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. 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.