[Resolved] I have trouble with parametric search : it includes more than it should
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to setup view filter as dropdown with default option text.
Solution:
When you Create/Edit your view filter it will open a popup and within that popup you will find following option:
"Label for 'not selected' option".
Hello. Thank you for contacting the Toolset support.
I checked problem URL you shared with us. I think this is due to the second filter dropdown.
I would like to review your views settings.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
If you navigate to "query filter" section and edit your query filter, I can see that the "Fields relationship:" setup with "OR" operator.
So, as you search with BMW and second dropdown filter has first value as "01 - Ain":
=> thats the reason it returned the result with records with "BMW" OR "01 Ain".
The extra record is displaying because "Ford Mustang" entry has assigned "01 - Ain".
Either you should use "And" operator with the "Fields relationship with your query filter section.
I just did try to change the operator from OR to AND, but the result is actually worse : no cars found. You still have your acess, and caching is still deactivated.
How can I set up the search using one parameter only (car brand or area), and not having a relationship between the two ? It would make my day (and the website visitors)
I did try to edit the view as you recommended but still couldn't get it working properly. I alos have another question regarding this solution : what should the url_param field contain : a pre-existing custom field or could it be anything ?
However, I did notice something : it doesn't work properly when I use two "select" searches. If I let Types choose (Types auto style), it works.
Problem becomes that for the areas it chooses checboxes, and there a lot of them. It also chooses an input field for the brand.
Is it possible that two "select" fields are too much, that you wold have to choose one with checkboxes and another one ?
I could not able to make any changes with your filter last time that is why I asked you to change it.
When you edit your filter it will open a popup and within that popup you will find following option:
"Label for 'not selected' option". Please find attached image.
You should setup default option for both your filter. Could you please add default select text, for example:
"select one option"