Skip Navigation

[Resolved] Between Min/Max Value not consistently working

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by benjaminJ-3 3 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#2038317

I am trying to: Show results with a value between the min/max value for the wpcf-available-space field.

Link to a page where the issue can be seen: hidden link

I expected to see: If I change the min/max value for any number above or below the wpcf-available-space value then the posts in that range would show.

Instead, I got: If I put 99999 I get 4 results which is incorrect (should be 3), but if I put 100000 I get no results and should still get 3 results. If I put 6581917 I should get 4 results but only get 3.

#2038991

Hello and thank you for contacting the Toolset support.

The issue comes from the filter setting. You were comparing the field as a string where you should compare it as a number. Check this screenshot hidden link

I wanted to test it further, but I am not sure where did you test the values (99999, 100000, 6581917)? In max or in Min?

Please check if the view works as expected now. If it does not, please provide a test case that shows the issue.

#2039049

Hello, yes that was the problem. At first, the field was a string and it was not working so I switched it to a number but did not realize the filter would have to be updated as well.

Thank You 🙂