Skip Navigation

[Resolved] Filtering Views Query by Custom select Fields

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

Problem:
Filtering Views Query by Custom select Fields

Solution:

You can find proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/filtering-views-query-by-custom-fields-2/#post-2313911

Relevant Documentation:

This support ticket is created 3 years, 11 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by marcelO-3 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2313871
Screenshot from 2022-03-10 19-04-14.png
Screenshot from 2022-03-10 19-03-57.png

Tell us what you are trying to do?
Filter a list of tasks to include any task with the status Not Started.

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/views/filtering-views-by-custom-fields/

What is the link to your site?
Local dev sorry.

I've attached some images so hopefully this helps identify what I am doing wrong.
When I create a query filter with custom field Task Status equal to Not Started, the resulting displays no records.
I have several tasks with different statuses, so there should be some results in the list.
Have I got the comparison check wrong somewhere? Am I not supposed to be using the Display Text of the select options?
Any help appreciated. Thanks.

#2313911

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

With the Query Filter you added can you please try to compare the value 1 because option "Not Started" is assigned the value 1 and that will be stored to database. Please compare with value 1 instead of display text "Not Started" and check if you get the desired results.

#2314699

My issue is resolved now. Thank you!