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

Search not working with elementor and ACF post type

Search not working with elementor and ACF post type

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search not working with elementor and ACF post type

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30972
    Srinivas Rwpelance62
    Participant

    Hi Team,

    Good Day!

    This is the first time I am reaching out to you for support.

    I’m one of your early supporter and till date I have not used the plugin and this is the first project I am using the plugin.

    The purchase code: 0000ab56-d42b-413d-be66-2a11989317a3

    I know the support has expired. However, if you want me to still buy support please let me know I can buy and update you the details here.

    The issue is that I have already created the search as needed at the following URL:
    https://lacrossetournamentfinder.com/home-lacrosse/

    However, no matter what I do the search is not working. I have been on this for the past 2 days trying to solve and since I am unable to solve I am looking for your help.

    I am searching for custom post type called tournaments and searching based on the custom post fields created using ACF.

    No matter what I do its not working. I was supposed to showcase this working today to client and I’m stuck and need your help.

    Please let me know if you need any information from me.

    #30975
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details, it helps a lot!

    I checked the filter configuration, and I found two issues with the state and age group filters. The operator was set to “EQUALS”, while these fields are non-numerical. I changed them here: https://i.imgur.com/yMaQFWx.png

    Another issue was, that the age group filter contains values which may cross-match. For example “7u” also matches string “17u”. These values are stored in the database as a serialized array, but the SQL query can only compare them as strings.
    To bypass that, I made an adjustment to the field, and entered the values manually, and added a double quote to the beginning of each: https://i.imgur.com/FOjthX1.png
    In the actualy field storage the fields are stored with double quotes at start, this ensures that the fields match at the actual beginning of the serialized string.

    It should be okay now.

    #30976
    Srinivas Rwpelance62
    Participant

    @Ernest, Thank you very very much. I will now send an invite to the client for a preview.

    However, knowing my client I had few questions here so please let me know how this can be done.

    Attached screenshot


    https://imgur.com/VMsSmje

    Right now I would like to know

    1. How can I add an additional value to the existing dropdown inclusive if the Get values ?
    2. Can the sections work independent as well as OR

    Thank you again.
    Srinivas

    • This reply was modified 5 years, 6 months ago by Srinivas Rwpelance62.
    #30993
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome!

    1. You can add normally before/after as if it was used wihtout the get_values syntax:

    ||Choose one/any
    {get_values}
    my_custom_value1||Custom value 1
    my_custom_value2||Custom value 2

    2. By default the connection is “AND” between the groups. You can change that here to “OR”, in that case either of the values matching is enough independently.

    #30994
    Srinivas Rwpelance62
    Participant

    Thank you very much. I’m greatful for your quick help and patience in helping me out.

    God Bless you!!

    I Wish you a very Happy New Year & Prosperous new year ahead.

    Thank you,
    Srinivas

    #30995
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #30996
    Srinivas Rwpelance62
    Participant

    Thank you please close this ticket.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Search not working with elementor and ACF post type’ is closed to new replies.