Skip Navigation

[Resuelto] Looking for a way to display CPT parent and children as an org chart

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.

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
How to programmatically create an Org Chart. This would be based on Parent/Children CPTs.

Solution:
Toolset does not have any such feature to create an organizational chart, this will require pure custom coding apart from listing the parent/child posts. Below are some hints:

1. First you will need to create relationship between parent/child posts and set them as one-to-many relationships.

2. And then display the relational data on a page using Views, both these are explained here in detail:
https://toolset.com/documentation/beyond-the-basics/post-relationship-concepts/implementing-one-to-many-relationships/

3. After that you will need to style the relational data using pure html and css. Like its built here as examples (the sample code is also provided here):
https://codepen.io/danyadsmith/pen/yNpqav
https://bootsnipp.com/snippets/eN3Q8

This support ticket is created hace 7 años, 1 mes. 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Gerard hace 7 años, 1 mes.

Asistido por: Noman.

Autor
Mensajes
#576319

Hi,

I'm asked to programmatically create an Org Chart. This would be based on Parent/Children CPTs.

I could really use any pointers and advice if you have any. 🙂

Thank you

#576445

Noman
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Karachi (GMT+05:00)

Hi Gerard,

Thank you for contacting Toolset support. Toolset does not have any such feature to create an organizational chart, this will require pure custom coding apart from listing the parent/child posts. Below are some hints:

1. First you will need to create relationship between parent/child posts and set them as one-to-many relationships.

2. And then display the relational data on a page using Views, both these are explained here in detail:
https://toolset.com/documentation/beyond-the-basics/post-relationship-concepts/implementing-one-to-many-relationships/

3. After that you will need to style the relational data using pure html and css. Like its built here as examples (the sample code is also provided here):
enlace oculto
enlace oculto

We cannot consult much on custom code as per our support policy (https://toolset.com/toolset-support-policy/) . For this, you can contact Toolset recommended service providers to further discuss the custom approach. We have some recommended list of service providers here if you would like to take a look: https://toolset.com/consultant/

Thank you

#576632

I'm sorry, I thought I was posting in the community forums.. :/

Thanks,

El foro ‘Types Community Support’ está cerrado y no se permiten nuevos debates ni respuestas.