Navigation überspringen

[Gelöst] Filtering Views Query by Custom select Fields

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 years, 4 months. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von marcelO-3 vor 4 years, 4 months.

Assistiert von: Minesh.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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!