Skip Navigation

[Resolved] How to Filter by Child's Parent

This support ticket is created 3 years, 8 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
- 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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2062413

Tell us what you are trying to do?

My website has a custom post type of jobs with another custom post type of applications which is setup as a child to jobs. I have set up a view wherein the output of the application is presented.
I am dealing with a few different custom post types:

1. Jobs
2. Employer
3. Jobseeker
4. Applications

The problem I am having is jobseeker is the author of application with jobs being the parent of application. I have created a view to list all job application but I would like to further filter that view so users can view all job applications that are relevant to their jobs, but I cannot seem to figure out how to filter based on a child's parent.

Help would be greatly appreciated.

Is there any documentation that you are following?
No
Is there a similar example that we can see?
Not that I know of

What is the link to your site?
hidden link

#2062633

Hello,

I assume we are talking about one-to-many relationship between post types "Jobseeker" and "Applications".

It is possible to search child "applications" posts by "Jobseeker" parent post title, see our document:
https://toolset.com/course-lesson/creating-a-custom-search/#how-to-search-by-post-relationships
section "How to search by post relationships"