Skip Navigation

[Resolved] Creating employer/employee/jobs-relationship – where to start …

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

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

Problem: I am trying to find out how I can achieve the following with Toolset:

The following scenario needs to be developed for a municipal job board that provides jobs for young people.

An employer creates a job.
The job is listed.
An employee sees the job and applies.
The job exchange connects employers, employees and jobs.
The employer sees which employee has taken on which job.
The employee sees which jobs he has taken on.
The job exchange creates automatic payroll accounting based on the relationship between employer, employee and job.

I'm not sure which procedure is best.

Solution: I would start with the following structure:
- Employer: Custom User role, unless you want to allow parametric searches of Employers like search by location, search by industry type, etc. Parametric searches of Users are not supported, so you would need a Custom Post Type.
- Employee: Custom User role, unless you want to allow parametric searches of Employees like search by location, search by qualifications, search by rating, etc. Parametric searches of Users are not supported, so you would need a Custom Post Type.
- Job: Custom Post Type, parent of Application. Employer is the author of a Job. Use a CRED form to allow Employers to create / edit their own Job posts.
- Application: Custom Post Type, child of Job. Employee is the author of an Application. Use a CRED form to allow Employees to create / edit their own Application posts for any Job.
- I assume there is some workflow where the Employer reviews all Applications for a Job, then selects one Application. You could establish the selected Employee relationship by using a custom field on the Job post type that stores the Employee's User ID as the assigned Employee. This can be maintained with a CRED form that edits the Job post and stores the value of a hidden field which captures the Application's author ID. When the CRED form is submitted, you can send custom notifications to the selected Employee based on the author ID.
- A View of Jobs filtered by Author ID - shows an Employer all their Job listings. Based on the assigned Employee custom field, you can show the Job as "filled" or "open". You could nest a View inside this View that shows all the child Applications of each Job post, if you want, and any information about those Applications.
- A View of Applications filtered by Author ID - shows an Employee all their Applications. Based on the assigned Employee custom field in the Application parent (Job), you can determine whether or not the Job is "filled" or "open", and if filled, whether or not the Employee's Application was accepted.
- Custom taxonomies as needed to categorize your Job posts to facilitate the types of Job searches you want to include.

Relevant Documentation:
https://toolset.com/documentation/user-guides/creating-post-type-relationships/
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#590636

Hey

I am trying to find out how I can achieve the following with Toolset:

The following scenario needs to be developed for a municipal job board that provides jobs for young people.

An employer creates a job.
The job is listed.
An employee sees the job and applies.
The job exchange connects employers, employees and jobs.
The employer sees which employee has taken on which job.
The employee sees which jobs he has taken on.
The job exchange creates automatic payroll accounting based on the relationship between employer, employee and job.

I'm not sure which procedure is best.

From your point of view, what must be a role, a post type, a custom field, a taxonomy and so on?

Thanks for your help
Philip

#591007

Hi, I apologize for the delay in response. Based on your brief description, I would start with the following structure:
- Employer: Custom User role, unless you want to allow parametric searches of Employers like search by location, search by industry type, etc. Parametric searches of Users are not supported, so you would need a Custom Post Type.
- Employee: Custom User role, unless you want to allow parametric searches of Employees like search by location, search by qualifications, search by rating, etc. Parametric searches of Users are not supported, so you would need a Custom Post Type.
- Job: Custom Post Type, parent of Application. Employer is the author of a Job. Use a CRED form to allow Employers to create / edit their own Job posts.
- Application: Custom Post Type, child of Job. Employee is the author of an Application. Use a CRED form to allow Employees to create / edit their own Application posts for any Job.
- I assume there is some workflow where the Employer reviews all Applications for a Job, then selects one Application. You could establish the selected Employee relationship by using a custom field on the Job post type that stores the Employee's User ID as the assigned Employee. This can be maintained with a CRED form that edits the Job post and stores the value of a hidden field which captures the Application's author ID. When the CRED form is submitted, you can send custom notifications to the selected Employee based on the author ID.
- A View of Jobs filtered by Author ID - shows an Employer all their Job listings. Based on the assigned Employee custom field, you can show the Job as "filled" or "open". You could nest a View inside this View that shows all the child Applications of each Job post, if you want, and any information about those Applications.
- A View of Applications filtered by Author ID - shows an Employee all their Applications. Based on the assigned Employee custom field in the Application parent (Job), you can determine whether or not the Job is "filled" or "open", and if filled, whether or not the Employee's Application was accepted.
- Custom taxonomies as needed to categorize your Job posts to facilitate the types of Job searches you want to include.

The job exchange creates automatic payroll accounting based on the relationship between employer, employee and job.
I'm not sure what this means so I'm not able to give detailed information on this. Assuming you have custom PHP code that handles this functionality I can help you trigger it using the CRED API:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
However, integrating with 3rd party APIs is outside the scope of the support we can provide here in the forum. I can help you access any information stored in a post or captured by a CRED form, but then you will be on your own to integrate that with another application's API.

Let me know if you have follow up questions.

#592710

Hi Christian

Thank you very much for your answer - and sorry for the late response. I'm currently dealing with some problems for which I'm about to open a new ticket.

I did what you suggested and so far it works fine!

Thanks!
Philip

The forum ‘Types Community Support’ is closed to new topics and replies.