Different Markup Templates For Each Mime Type
-
Is their a way using a conditional to load a separate markup template for each attachment that loads through 1 shortcode? For instance if I want a gallery of mixed post_mime_types. I may want a video thumbnail to load but load hidden inline content with the player in it for only video files. Or if it’s images I just want it to link out to the full size image. I want the templates to differ based on the mime_type. I can easily create different templates and point to that template using a shortcode only targeting video but I want a gallery mixed full of different media types.
ex: [mla_gallery post_mime_type=video mla_markup=video_template]But I need one gallery paginated utilizing different markup templates on a per file basis in order to achieve this “mixed media gallery”. Do you have any tips on how to achieve this? I’m using the markup templates currently in order to load the players for audio/video.
Any direction you can point me in would be great.
Thanks,
Brianhttps://www.ads-software.com/plugins/media-library-assistant/
- The topic ‘Different Markup Templates For Each Mime Type’ is closed to new replies.