[Resolved] Populate intermediary post title with parent-child title combo

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.

This topic contains 4 replies, has 2 voices.

Last updated by ScottM9386 4 months, 2 weeks ago.

Assigned support staff: Luo Yang.

Author
Posts
#1517187

Hello,

This is probably beyond support. But how does one populate the intermediary post title with parent-child title?
Parent = Track
Inter = track-client
Child = Client.
I've seen some threads on this but don't understand.

Thanks!

#1517879

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

I assume we are talking about this case:
You are going to populate the intermediary post title with parent post titles automatically.

If it is, there isn't such kind of built-in feature within Toolset plugins, you will consider custom codes, for example:
1) Use action hook save_post to trigger a PHP function:
https://developer.wordpress.org/reference/hooks/save_post/
2) Get related post information:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_post
3)and update the post title to what you want.
https://developer.wordpress.org/reference/functions/wp_update_post/

But in most cases, you don't need to setup the intermediary post title, and it is possible to display the related parent post titles in a single intermediary post, this can be done without any custom codes, see our document:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-one-related-item-parent

For your reference.

#1518975

Thank you Luo,

I know how to display fields from related posts. What I really need is for the title of the intermediary to be populated from the parent child titles.
Thank you for the links.
I guess I have to hire a developer to implement this for me?
Thank you,
Scott.

#1519951

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Yes, in your case, it needs custom codes, you can check it with our Toolset contractors:
https://toolset.com/contractors/

#1520007

Thank you!