I am trying to: Have a filter for a start date and a filter for an end date. However if i add a second filter the filter doesnt operate on the right parameters. I can see this in the backend but i cannot change the filter.
Link to a page where the issue can be seen: hidden link
I expected to see: a working end date filter.
Instead, I got: a not working filter.
Hello,
Since you are using custom search form, you need to change the filters in "Search and Pagination" section.
For example:
Edit the post view "Projectoverzicht bezoekers":
hidden link
In section "Search and Pagination", click into shortcode:
[wpv-control-postmeta type="date" field="wpcf-start-datum" url_param="wpv-wpcf-start-datum_min"]
click button "Edit filter", you will be able to change the date filters, see my screenshot
Hi Luoy,
thank you for your reply. I did what you suggested. However this does not solve the problem.
I set up the end date filter the same way as the start date filter. However the query added by toolset in the query filter for start and end date are still different(as in screen 1 of the original post). I assume that the end date filter should be the same as the startdate filter(Startdatum is a number between URL_PARAM(wpv-wpcf-start-datum_min), URL_PARAM(wpv-wpcf-start-datum_max))
How can i do that?
Kind regards,
Glenn
I have tried it in your website, reset the second date filter "wpcf-eind-datum", save the post view, test it in frontend, for example:
hidden link
Please check if it is fixed, thanks
Hi Luoy,
thank you for your help. It seems to work now. However can you explain how you reset it? I have the same problem on an other website. If I know what you did i can try to fix it myself.
Kind regards,
Glenn
Here is the detail steps:
Edit the post view:
hidden link
In section "Search and Pagination", click into shortcode:
[wpv-control-postmeta field="wpcf-eind-datum" type="date" url_param="wpv-wpcf-eind-datum_max"]
Click button "Edit filter", reset the filter, see my screenshot date-filter4.jpg
save the view.
My issue is resolved now. Thank you!