Sorry about this but apart from the above issue (I needed to show 2 related locations) I've got another issue related to this.
I also need to display related another 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.
Luo is on vacation. This is Minesh here and I will take care of this ticket. I hope this is OK.
Well - Could you please explain your issue and what is your expected output with problem URL. Please share as much information as you can that will help me to understand your issue that will help me to guide you in right direction.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Well - If I'm right, you are talking about this page:
=> hidden link
I checked the page in backend and I see there are two entries there under post relationship meta box "Courses Locations":
=> hidden link
And I've added following to your template: File: parts/course-location.php
echo "<pre>";
print_r($related_locations);
I see its correctly fetching two entries. Could you please check where you are doing mistake as the function toolset_get_related_posts() returns correct related entries.
Note: please feel free to edit your PHP template, once you check the issue.
thanks for all your help. However as you can see in the image, there is code that's being shown that is relative to the locations that shouldn't be shown. Could you have another look please?
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!
New threads created by Minesh and linked to this one are listed below: