Thanks for your question; PDF galleries have been a popular topic in the MLA forum.
By default, shortcodes like [mla_gallery]
display the item Title for all non-image items such as PDF documents because they don’t have a “thumbnail image”. By adding size=icon
to your shortcode you can display a PDF icon as the “thumbnail” and use the caption for additional information. MLA also supports adding a “Featured Image” to your documents and the mla_viewer
parameter to generate thumbnails based on document content. You can find a lot of information in the Settings/Media Library Assistant Documentation tab.
The simplest answer to your question uses the mla_caption
shortcode parameter, which provides a convenient way to alter the “caption” displayed beneath the gallery thumbnails. Here is an example:
[mla_gallery post_parent=all post_mime_type=application/pdf size=icon link=file mla_caption="{+title+}"]
You can add more substitution parameters to the caption and use a Content Template for conditional formatting. See the Documentation tab for more information. If you want greater control over the gallery display you can create a custom markup template. Here is an earlier topic along similar lines that includes links to other topics as well:
Styling MLA Gallery
I hope the above suggestions get you started on displaying the gallery you want. I am marking this topic resolved, but please update it if you have problems or further questions regarding the composition of [mla_gallery]
captions. Thanks for your interest in the plugin.