Skip Navigation

[Resolved] Split: Coding Post Relationship (Parent of Child) – show related content

This support ticket is created 6 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
- 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 5 replies, has 2 voices.

Last updated by gabrielB 6 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1118997

Hi Minesh,

I just realised that all I had to do was remove the following bit of code. That's done. Thank you so much.

	echo "<pre>";
	print_r($related_locations);

If it's possible, could you also take a look at the rest of my message? There were the following 2 points:

  • I can't seem to load the content of the related post. File: parts/course-location.php
  • I also need to display another related CPT (Learning Partners). In this case however I will have one Learning partner that has the Custom Category "Awarding Body" and another "Accreditation". I was going to call these separately. File: parts/course-accreditaion.php and parts/course-awarding-body.php

I can't thank you enough!

#1118999

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

- I can't seem to load the content of the related post. File: parts/course-location.php
==> Well - when you say content - what content you want to display, I mean what field/content you want to display exactly at what section?

Please share all details information with access details.

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

#1119010

Minesh
Supporter

Languages: English (English )

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

Well - I do not see the post body filed available when I edit the "Course Example 1":
See: hidden link

OR
You mean that you want to display related post content? If yes: even with related posts I do not see the post body field available:
=> hidden link

So, do you want to display details from any custom field?

#1119022

You're absolutely right. I need this for another CPT, but for now I added the Editor back into locations. I'm sorry for the mixup. I want to display the content from the WordPress editor for the related post (Location).

#1119029

Minesh
Supporter

Languages: English (English )

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

Well - I can see now - related post content is displaying on frontend:
=> hidden link

Could you please confirm.

#1119039

hank you so much Minesh! You're a lifesaver! My issue is resolved now. Thank you!