Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Question
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 8 years, 1 month ago.
- AuthorPosts
- July 11, 2016 at 6:41 pm #9473
Hi Ernest,
Thank you for your quick reply.
I did as you say.
I have 5 pages for people and I added custom fields.The “Custom Fields connection Logic” is set to AND
Please have a look here, under the search form I added the details for the 5 pages.
http://francisclark-test.co.uk/contact-us/
The problem is that I want only
location + service
location+key market
location+expertiseFor example if I search for VAT services in Poole, Simon Anslow will not come up.
If I change to OR all people from Poole will come up.
I hope you understand what I mean. As you can see on the old site (http://www.francisclark.co.uk/)
if you select a service, the key markets and expertise fields are blocked.I would be very grateful if you could help me as your plugin is really great.
Thank you very much
July 12, 2016 at 11:34 am #9476Hi Angel,
Thanks for the details, it made my job much easier.
I have managed to find a decent solution for you. First, the custom field selectors support empty values. (link to the documentation) This is basically used to add an empty choice to the list, which the plugin ignores. I’ve added one extra option to the service, key market, expertise fields (“Select …” option). You can check that on the back-end of the plugin.
This solves the problem you described, as if the user selects location+expertise then the others are ignored. However he can still select the other ones. To resolve that problem, I have put together a custom script, which you should put to the footer.php file in your theme directory, before the closing body HTML tag:
This will make sure that if the user selects one from either service, key market or expertise – then the other two fields are reset to defaults (empty).
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 12, 2016 at 4:31 pm #9489THANK YOU!!
You are the best Ernest, I rarely come across with professionals like you.
Thanks a lot
All the best,
Angel
July 12, 2016 at 4:33 pm #9490You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Question’ is closed to new replies.