Skip Navigation

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

This support ticket is created Il y a 8 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 15 réponses, a 3 voix.

Dernière mise à jour par Shane Il y a 8 années et 1 mois.

Assisté par: Shane.

Auteur
Publications
#381406

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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

Ce ticket est maintenant fermé. Si vous êtes un client de Toolset et que vous avez besoin d'aide, veuillez ouvrir un nouveau ticket d'assistance