Skip Navigation

[Resolved] Query filter by field isn't working

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.

This topic contains 2 replies, has 2 voices.

Last updated by Jamal 9 months ago.

Assigned support staff: Jamal.

No results.JPG
Query String.JPG

Hi I am creating a view and trying to filter the posts shown by a custom field but it doesn't seem to work.

See attachments

1 - Shows query string of custom field type
2 - Shows post with custom field set correctly
3 - Show no results



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support.

By default, a view will query the posts with the publish status. Maybe the post that you shared in the screenshot "Post.JPG" is not yet published.
If it is not the case, please allow me temporary access to check this view further. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **



Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello Shane,

I could not find the view that you were working on it, so I created a new private page and I created a new view inside of it. You can see that it returns the expected results here hidden link

The issue with the query filter on your screenshot "Query String.JPG" is that it was using the label of the select field option instead of the value. Check this screenshot, you need to check against the values, on the right hidden link

The following Query Filter hidden link works as expected. It uses "Model Society"(the value) instead of "Model Railway Society"(the label).