Skip Navigation

[Resolved] Display parent post title

This support ticket is created 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by davidm-13 3 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2026035

Hi,
I have the following:

<p>
  Plant ID: [wpv-post-field name='wpcf-species-id'] 
  Plant Name: [wpv-post-title item="@plant-with-complaint-list.parent"]  
  Complaint:  [wpv-post-taxonomy type="complaint-use" format="slug"]
  System: [wpv-post-taxonomy type="system" format="slug"]
  Action: [wpv-post-taxonomy type="action-medicinal" format="slug"]
</p>

The Plant ID is from the parent post ('wpcf-species-id') and appears in both the child and parent posts.
How do I get the parent post title (Plant Name) to display - it was loaded as _toolset_associations_plant-complaint in the child posts.
Thanks for your help

#2026083

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure what exactly the issue is.

I see the following code you added:

  Plant Name: [wpv-post-title item="@plant-with-complaint-list.parent"]  

And it should display the parent post title on your child post - can you please tell me what exactly the issue you are having?

#2026157
sys-action.JPG

Hi Minesh,
The problem is Plant Name is blank - see attached

#2026169

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

On what page you do not see the result.

Can I have problem URL and admin access details where I can see the issue.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2026533

To see problem - on home page select from "Body System / State" on the right, click "Search" button to see problem url: hidden link

#2026787

Hi Minesh,
Found the problem.
Where I had:

Plant Name: [wpv-post-title item="@plant-with-complaint-list.parent"]  

Should have been

[wpv-post-link item="@plant-complaint.parent"]

Could you just explain to me what "@plant-with-complaint-list" and "@plant-complaint" are and where I can find the correct one.
Thanks

#2027207

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you just explain to me what "@plant-with-complaint-list" and "@plant-complaint" are and where I can find the correct one.
==>
I see with Toolset -> Relationship you have one to many post relationship setup.
- hidden link

The slug of the post relationship is setup as: plant-complaint

So, you need to make sure that you should be using the correct post relationship slug to display the associated parent.

For example:

[wpv-post-link item="@plant-complaint.parent"]
#2027215

Thanks Minesh, for explaining this