Skip Navigation

[Resolved] 3 different types relationship and views based on one of them Dep – Name – Role

This support ticket is created 8 years, 1 month 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 3 voices.

Last updated by Shane 8 years ago.

Assisted by: Shane.

Author
Posts
#381406

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Johan,

Great so you just need to create a taxonomy a separate taxonomy for each department.

Note then you will need multiple
Role: [wpv-post-taxonomy type="role" separator=", " format="link" show="name" order="asc"]

Shortcodes in order to display a roles of each employee, granted that they have multiple Roles accross multiple departments.

For Example we have Josh. Josh is apart of the IT department and Marketing department.

In IT josh is a Software Project Manager and in Marketing he is the Marketing Manager.

So we have 2 taxonomies. IT Roles and Marketing Roles.

So to display the Roles for Josh you will need to use this.

IT Roles  [wpv-post-taxonomy type="it-role" separator=", " format="link" show="name" order="asc"]
Marketing Roles  [wpv-post-taxonomy type="marketing-role" separator=", " format="link" show="name" order="asc"]

I can see this getting a bit complex given that you only want each role to display under the relevant department. So if Josh name appears under IT department you want to show his roles there and not his roles under Marketing department.

In a case like this we will need a wpv-conditional to check but I would need to think on this a bit more.

Thanks,
Shane

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.