Skip Navigation

[Resolved] Display the Parent's CPT title in it's related Child's CPT Title

This support ticket is created 2 years, 8 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.

This topic contains 1 reply, has 1 voice.

Last updated by williamA-6 2 years, 8 months ago.

Author
Posts
#2498255
Add or Connect New Agency.png

Minesh kindly privided me some code to automatically generate a post tilte based on 2 custom fields and a post reference field (see: https://toolset.com/forums/topic/cannot-create-new-cpt/). However, there are going to be many occasssions where the parent post doesn't already exist (and therefore not available in the post reference dropdown), so I am hoping that you will be able to talk me through how I can diplay the parent post title (instead of the post reference filed) if I add it via the method shown in the attached screen shot? The CPT is called "Agency" and it only contains the default post title. Many thanks in advance.

#2498379

Not to worry, I worked it out myself.