Skip Navigation

[Resolved] Miminum (greater than or equal to) filter for numeric value doesn’t work

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup filter on custom numberic field.

Solution:

You can setup below options on the filter:
- Filter comparison Compare value as a "Number"
- Using this comparison: Beween

See screenshot:
https://toolset.com/wp-content/uploads/2020/03/1561129-between.jpg

Relevant Documentation:

This support ticket is created 4 years, 9 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by RensV5812 4 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1560765
toolset8.PNG

Hey team,

I am trying to:
Create a numeric filter for a view created in the block editor.
Link to a page where the issue can be seen:
hidden link
I expected to see:
Posts that have a value that is higher than the one filled in in the filter.
Instead, I got:
The same results as without the filter used.

The funny thing is that I have a Maximum filter that works just fine. I have also tried to build this filter as part of a Min-Max-combination using the 'between' argument. In this case the Min and Max both didn't work. I tried comparing input values as a number or as a decimal. Any idea what's going on?

FYI, I am planning on turning this input box into a range slider with two handles with some javascript. When I get it working I'll be looking into that.

Thanks for taking the time to look into it,
Rens

#1561129
between.JPG

Hello,

I assume we are talking about a custom numeric field "salaris" created with Types plugin.

I have tried it in my localhost with latest version of Toolset plugins, it works fine, I can get correct result after submit the search form.
Please check these in your website:
Make sure you are using option:
- Filter comparison Compare value as a "Number"
- Using this comparison: Beween

See screenshot:
between.JPG

#1561145

Hi Luo,

I guess I was using the between and another greater than filter at the same time. Maybe this was causing issues? Anyway it works fine now, thanks for taking the time to help out. 👍

Rens