Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom Fields using Same Name but different Values
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 7 months ago.
- AuthorPosts
- September 12, 2017 at 10:42 am #14658
Hi Support, thanks for this great plugin, it has helped me a lot.
I am working on a Lawyers Firm website. The firm has more than 40 Lawyers, with some having more than 3 Expertise. So I have pages for each Lawyer. What I have done is I have assigned the expertise with same Custom Filed NAME ‘select_expertise’ but Different VALUE. See attached.
Now on the front-end search, when I select an Expertise say ‘Arbitration & Mediation’ from the drop-down menu, the results only shows the lawyers whose Expertise ‘Arbitration & Mediation’ appears as the first option on admin, if its the second on admin its ignored on results.
How can I get it to show the lawyers no matter what order the expertise is
Attachments:
You must be logged in to view attached files.September 12, 2017 at 2:27 pm #14667Hi Support,
Any progress on my problem
rgds
September 13, 2017 at 4:55 pm #14718Hi!
Sorry about the late response, but I had to investigate this issue on my local environment to see if I can re-create it. It looks like this is a bug, that the custom field filters indeed not work with multiple custom field values on the same key.
I have come up with a solution, but it requires a change directly in the plugin code in order to solve it. If you want, you can do this for yourserlf as well:
1. Before editing any files on your server, make sure to have a back-up
2. Open up the following file on your server via FTP: wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-search-cpt.php
3. Replace it’s contents with this: https://goo.gl/HCBsXN
4. Save the file and it is done.
In case of issues, just restore the original file.If you need help with this, feel free to update your ticket with temporary FTP access, and I will do it for you. I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 14, 2017 at 10:22 am #14722You cannot access this content.September 14, 2017 at 1:52 pm #14725You 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.