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
- This topic has 6 replies, 2 voices, and was last updated 5 years, 6 months ago by
wpelance62.
-
AuthorPosts
-
January 4, 2021 at 9:49 am #30972
wpelance62
ParticipantHi 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.
January 4, 2021 at 2:11 pm #30975Ernest Marcinko
KeymasterHi,
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.
January 4, 2021 at 2:43 pm #30976wpelance62
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
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 ORThank you again.
Srinivas-
This reply was modified 5 years, 6 months ago by
wpelance62.
January 4, 2021 at 4:36 pm #30993Ernest Marcinko
KeymasterYou 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 22. 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.
January 4, 2021 at 4:38 pm #30994wpelance62
ParticipantThank 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,
SrinivasJanuary 4, 2021 at 4:39 pm #30995Ernest Marcinko
KeymasterYou cannot access this content.
January 4, 2021 at 5:15 pm #30996wpelance62
ParticipantThank you please close this ticket.
-
This reply was modified 5 years, 6 months ago by
-
AuthorPosts
- The topic ‘Search not working with elementor and ACF post type’ is closed to new replies.