Skip Navigation

[Closed] Filter view by Custom field (select) value

This support ticket is created 2 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 2 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#2294367
Screenshot 2022-02-16 at 15.42.39.png

Hi

Im trying to filter a custom post type 'applications' view by the value of a custom field 'edit-application-status'.
This is a select box with 3 different values. I've attached an image of the setup of the custom field.

Thank you!

#2294471

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You are trying to add a front-end filter where users can select the option, or you want a View with a fixed filter where you specify what should display?

It should be straightforward setting up such a filter, did you encounter a problem?

For a fixed query filter, see https://toolset.com/course-lesson/creating-a-view/#filter-the-list-of-posts

To add a front-end filter, see https://toolset.com/course-lesson/creating-a-view/#add-a-custom-search-to-a-view

#2294487
Screenshot 2022-02-16 at 17.20.45.png

Hi Nigel

What values should i put in here?
can't seem to get it to work.

#2298901

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry Matthieu, there was a glitch in our system and this thread has been lost in no-man's land until now.

From that latest screenshot you are adding a query filter (so it will apply on every page load for this View) to only show posts where the edit-application-status is pending.

Is that what you want to happen? (Is it working?)

The topic ‘[Closed] Filter view by Custom field (select) value’ is closed to new replies.