• Resolved steacha

    (@steacha)


    I am still new to this (great) plugin and I am trying to figure out how I would go about displaying the contents of a custom field on the front-end. I’ve read some of the other posts, but I’m still not grasping the notation.

    What I am trying to achieve is to list all the PDFs within a specified attachment category and display the content of each their custom fields on the front-end.

    http://wordpress.org/plugins/media-library-assistant/

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

    (@dglingren)

    Thanks for the positive feedback and for this question. You might find an earlier support topic to be helpful:

    pdf list

    You can use the mla_caption parameter to add custom field information to the gallery display:

    [mla_gallery columns=1 post_mime_type=application/pdf post_parent=all attachment_category="some value" size=icon link=file mla_caption="{+custom:My Custom Field+}"]

    The “Field-level Markup Substitution Parameters” section of the Settings/Media Library Assistant Documentation tab has more information on the “custom:” prefix and its use.

    More elaborate displays can be constructed by creating “MLA Gallery Style and Markup Templates. There’s an example in the Documentation (A Table-based Style and Markup Template Example) that displays custom fields, iptc/exif metadata and some of the standard fields.

    MLA version 1.50 adds “Content Templates”, which let you compose display results that vary depending on the data available for each gallery item. You can also use the Content Templates in the Custom Fields and IPTC/EXIF mapping rules that create custom fields from a variety of sources.

    I hope that gives you enough information to get started on adding custom field values to your [mla_gallery] displays. If you have any problems with or further questions about these features, let me know. Thanks again for your interest.

    Thread Starter steacha

    (@steacha)

    Thanks David, this is really cool and more straightforward than I thought! again, great work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Field Content Display’ is closed to new replies.