I need to grab the media tags used for a gallery on a single post. The post is using only a few tags out of the many created on the site already. I only want to list those. Is there a way to do this? I've tried using get_mediatags() with the child_of and parent arguments (separately of course) but this only tries to get hierarchical mediatags as far as I know.
An example: Post A has images in a gallery that have tag1, tag2, tag3. There are tag4...up to tag50 on the site.
When I query get_mediatags (or a similar function) I want to be able to specify Post A as the parent post to filter out only mediatags used on that post's gallery or attachments.
Thanks for reading this!