Lets say I have a taxonomy called bands, and a taxonomy called band_members.
Band_members have an entity reference field relating each band member to a band.
When I view the bands taxonomy term page the band_members will not be listed.
I can modify the taxonomy term template and manually add them in there, however the bands need to be shown in popups, and the content for each popup is returned via AJAX using drupal_render(taxonomy_term_view($term)). This means any template changes won't show up. What I need to do is use a hook like hook_taxonomy_term_view_alter to add the band_members for that band into the renderable array.
However that will be quite a lot of work, and I though it seems like a fairly standard task to need to displayed referencing entities, so is there an easier way to do this?
In this example I've used taxonomies as an example, however this could apply to nodes, users or any other entities that reference each other.