I am looking to see if there is a possibility to dynamically change the title of the related posts. I know this can be changed via the admin (default is "Related Posts"). I would like to change this as I am linking between pages and CPT. The pages are Services and the CPT is Locations. So, if I am on the pages (services) it should say Related Locations. If I am on Locations it should say Related Services.
Any thoughts? Or examples on accomplishing this?