Skip Navigation

[Closed] List grandparents without grandchildren

This support ticket is created 4 years, 7 months 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)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1706701

Tell us what you are trying to do?
I'm trying to show a list of CPTs without grandchildren. The specific application is a call log where calls (grandchildren) are children of contacts (children) who are children of companies.

I have 3 CPTs:
Parent: Company
Child: Contact (1 Company to Many Contacts)
Grandchild: Calls (1 Contact to Many Calls)

I would like to list all Companies who have zero Calls.

Is there any documentation that you are following?

I tried this: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-fields-of-grandparents/ But am not sure how to adapt it to this specific application.

Is there a similar example that we can see?

Not that I'm aware of.

What is the link to your site?

Currently private development.

#1707211

Shane
Supporter

Languages: English (English )

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

Hi Nick,

Thank you for getting in touch.

So you essentially want to list out the Company if it doesn't have any children correct ?

This is actually going to be quite tricky to achieve because of how our Views work. you are able to list out the grand children but in terms of the parent you will run into some issues.

Do you plan to build this out in our Views classic editor? Also will this view just be added to a page that is listing the companies with no relationship data?

Please let me know.
Thanks,
Shane

The topic ‘[Closed] List grandparents without grandchildren’ is closed to new replies.