Skip Navigation

[Closed] How do I get the child to automatically update the parent's related information section

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1689617

A few other question - How do I get the child to automatically update the parent's related information section?

The examples/walkthrough are not exactly what I'm trying to do. What I need to do is, in my view,show all the parents EXCEPT when their is a child (or children), and then show the most recent child entry only in the list.

So if i have a list of cars:

Red Honda Accord Space 1
Blue Chevy Monte Carlo Space 2
Green Toyota Solara Space 10

And someone updates the info for the Blue Chevy, then that entry is replaced with the new 'post' infor for the update.

Red Honda Accord Space 1
Blue Chevy Monte Carlo Space 19
Green Toyota Solara Space 10

And so on....

Thanks!

#1689627

Hello,

It needs a nested views, for example:
1) Parent post view:
- Query "vehicles" posts
- in view's loop, display "vehicles" post title + below child post view

2) Child post view:
- Query "vehicles movement" posts
- order by post date DESC, display only one item
- Filter by post type relationship between "vehicles" and "vehicles movement"
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items
- in view's loop, display "vehicles movement" post information

#1690343

I think you misunderstood my question. This is less about the 'view/frontend' and more about the backend. In the record there is a section created by relationship. When I create a new record for the child it should have an entry for the parent (and vice versa) in that section. But it doesn't. Am I doing something wrong?

#1690981

Sorry for the misunderstanding, the problem you mentioned above is abnormal, it when you add an item in relationship section, it should have an entry for the parent, please check the same steps as I mentioned in previous thread:
https://toolset.com/forums/topic/new-entry-tracking/#post-1690855

The topic ‘[Closed] How do I get the child to automatically update the parent's related information section’ is closed to new replies.