I have 5 custom fields (cf1, cf2, cf3, cf4, cf5) which I have assigned to a custom post type. In the custom post archive I have added a search form and added cf1 as search field and kept the comparison as between. (I have taxonomy search field too in the form) Now I want to happen the search for cf2, cf3, cf4, cf5 with the same value for cf1. And I also want to keep OR logic between cf1, cf2, cf3, cf4, cf5
Hello. Thank you for contacting the Toolset support.
Can you please tell me how those custom fields are added using what field type?
Maybe you can share problem URL where you added the search form as well as admin access details and let me review your setting first and then I can tell you what could be the possible solution if any available.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
But unfortunately the code isn't performing the 'BETWEEN' comparison. No matter what input I provide in the search, It is showing all the posts.
I also want to apologize because I forgot to keep the the comparison 'between' in the search field 'cf1'. I changed it to 'BETWEEN' and again tried to search. But still what ever input I provide, the search is showing all the posts.
I tried to solve it by myself, but failed again and again. Can you kindly look into the problem again?
so you want to apply between? like you want to search between 5 and 15 for custom field 1 and the same you want to apply to other custom fields - correct?