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
Hello. Thank you for contacting the Toolset support.
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
==> Well - could you please share problem URL and access details with all required information what should be your expected output. Few screenshots will be helpful.
I have set the next reply to private which means only you and I have access to it.