Skip Navigation

[Resolved] Link user accounts to custom post type

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

Problem:
Client wants to connect job applications to job vacancies. One of the requirements is that when looking at a job vacancy post in the backend it should be easy to see the linked applications and the name of the person who submitted the application.

Solution:
If you create a one-to-many relationship between vacancies and applications, then when editing a vacancy post in the backend the linked applications will be listed. The small cog can be used to customise which custom fields from the linked application are displayed, so that the name of the applicant is shown in the list.

Relevant Documentation:
https://toolset.com/documentation/user-guides/how-to-create-custom-searches-and-relationships-for-users/

This support ticket is created 6 years, 3 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 2 replies, has 2 voices.

Last updated by Nigel 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1111287

We're looking at building a job application website. Jobs will be the CPT created.
Applications then need to be attached to each job - this could probably be a CPT as well.
We will custom building most of the front end for the job setup as well as the applications being attached to jobs. One of the requirements is for admin to be able to easily see this when viewing the job in the WP admin area. What would be great is if we could use the post relationship (I realize users are not post types) or some kind of repeatable field selection box of users. that are attached to the job. Is that doable at all? Or can we hook in to that edit post type page to add this additional functionality?

#1111411

Nigel
Supporter

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

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

Screen Shot 2018-09-19 at 10.34.39.png

Hi Nigel

I suggest you read the following for background about one way of handling situations such as this: https://toolset.com/documentation/user-guides/how-to-create-custom-searches-and-relationships-for-users/

You will have a one-to-many relationship between jobs << applications (even if applicants can apply to more than one job they will surely need a separate application for each).

I understand your requirement is that on the post edit screen for a job, that the applications are listed and include the name of the applicant?

In the screenshot I have a project << tasks relationship, and the tasks post type has a custom field "assignee", so while editing a project I can see the child tasks and see the assignee of the task. (You can use the cog to customise which fields are shown here. You can only show custom fields, so if the applicant were the post author of the application you couldn't show that, unfortunately, you need a name field, but presumably your applications would include such a field.)

I think that should cover your use case.

#1111768

I believe that will work well creating post types for the additional information I need from users.
Thanks Nigel!