Skip Navigation

[Resolved] Query filter does not work properly.

This support ticket is created 3 years, 1 month 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by matthiasV-2 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2194007

Refer this ticket to Waqar.

For this page: hidden link

We created 2 query filters:

Field - Type eigendom
The field Type eigendom is a string that is "in" the following:
URL parameter: wpv-wpcf-type-eigendom

&

Field - Eigendom type
The field Eigendom type is a string that is "in" the following:
URL parameter: wpv-wpcf-eigendom-type

If we select a few property types like "appartement", "pand", "woning", ... "geen eigendommen" are found, which is not normal.

The "in" the following... does not return any results, however when we change it to "not in" the following then the filter seems to work.

What is wrong here?

#2194565

Hi,

Thank you for contacting us and I'd be happy to assist.

The "Type eigendom" is a radio type field, which stores the numerical values.
( screenshot: hidden link )

For this reason, the query filter for this field should be:
The field Type eigendom is a "number" (not string) that is "in" the following:
URL parameter: wpv-wpcf-type-eigendom

The "Eigendom type" field is a single line type field, which means that the "string" comparison type will work for this field.

If you still see some unexpected results, please share the information about the exact search steps that you performed and the results that should not be showing.

regards,
Waqar

#2195567

My issue is resolved now. Thank you!