Skip Navigation

[Resolved] Problem with two date filters in view

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by glenn 2 years ago.

Assisted by: Luo Yang.

Author
Posts
#2548713
screen1.png
screen2.png

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.

#2549217
date-filter3.jpg

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

#2549419
screen4.png
screen3.png

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

#2550007

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

#2551199

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

#2551351
date-filter4.jpg

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.

#2554913

My issue is resolved now. Thank you!