In an effort to create a link back to the post that a media was uploaded to while viewing the lightbox for that media (single media view), I think I need to get the context_id of that media. When I var_dump() rtmedia(), I see an object where the value for context_id is contained. But I can’t figure out how to make it available to my template. (Whats more, running rtmedia() seems to make all the data disappear for the rest of the page). Needless to say, I only have a loose grip on what’s all going on here.
SO, is there a way to return context_id for use in my template during the single view of a media item? Is there a better way to achieve my goal of providing a link back to the post referenced by the context_id?