Skip Navigation

[Resolved] 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.

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

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 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
- 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Gerard 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#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

Languages: English (English )

Timezone: 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):
hidden link
hidden link

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,

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