• Resolved rlemons

    (@rlemons)


    I’m trying to make a simple list of URLs that link to PDFs within a category, however it keeps showing thumbnails. When I try the [mla_custom_list] shortcode, nothing shows up at all. I have checked the debug log and no errors.

    This is what I’ve been trying to get working:

    This simple shortcode shows nothing: [mla_custom_list attachment_category=”policy-docs” ]

    This gallery shortcode I thought would add a caption: [mla_gallery mla_style=none mla_markup=h3-only post_mime_type=application/pdf attachment_category=”policy-docs” link=”file” mla_markup=”{+title+}” mla_output=”ul”]

    Lastly this shortcode which I hoped would return a list of links: [mla_custom_list post_mime_type=”application/pdf” attachment_category=”policy-docs” mla_field=”file_url” mla_output=”ulist” link=”file”]

    Any advice would be appreciated.

    The page I need help with: [log in to see the link]

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

    (@dglingren)

    Thanks for your question and for sharing the shortcodes you’ve been experimenting with.

    The MLA shortcode for your application is [mla_gallery]. The [mla_custom_list] shortcode will not help you; it is used to compose a list of WordPress Custom Field values, not Media Library items.

    Here is a shortcode that will give you something like you have described:

    [mla_gallery]
    post_mime_type="application/pdf"
    link=file
    mla_target="_blank"
    mla_caption=" "
    size=none
    columns=1
    mla_float=left
    mla_itemwidth=none
    attachment_category=policy-docs
    [/mla_gallery]

    The big problem with this simple approach id the amount of wasted vertical space generated by the default markup template. You can achieve a much more attractive display by adapting the solution outlined in this earlier support topic:

    pdf’s display in ul | www.remarpro.com

    I hope that gets you started on a solution for your application. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Thread Starter rlemons

    (@rlemons)

    Thanks for the response, I searched for a similar inquiry but couldn’t find one. This will definitely help me get started.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.