Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for the kind words and for this question. Here are some ideas on formatting your [mla_gallery] display.

    First, your question mentions both the title and the file name.You can find these and many other bits of information in the “Attachment-specific substitution parameters for markup templates” section of the Settings/Media Library Assistant Documentation tab.

    You didn’t include the source code of your [mla_gallery] shortcode, but let’s use this as an example:

    [mla_gallery post_mime_type=application/pdf post_parent=all]

    The should list all the PDFs in your Media Library. Since PDF files have no thumbnail images, the item title should be displayed (as a hyperlink) by default, with the item caption field underneath that. If you code:

    [mla_gallery post_mime_type=application/pdf post_parent=all size=icon]

    the hyperlink will be displayed as a PDF icon image with the caption underneath. It’s easy to customize the caption by adding an mla_caption parameter to your shortcode:

    [mla_gallery post_mime_type=application/pdf post_parent=all size=icon mla_caption="{+title+}<br>{+base_file+}"]

    You can substitute any of the fields listed in the Documentation for “title” and “base_file”. You can also add a link=file parameter to your shortcode if you want the link to go directly to the PDF document and not to the WordPress “Attachment page” for the document.

    I hope that gets you going. I’m going to mark this issue resolved for now, but feel free to update it if I’ve misunderstood the question, if you have any problems or if you have further questions.

    Thread Starter storysongjourney

    (@storysongjourney)

    Thank you! That is exactly what I was looking for. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gallery Item Titles’ is closed to new replies.