Support » Plugin: Media Library Assistant » Getting NoWhere…I Must Be Doing Something Wrong

  • Resolved stuartwells


    It is as if nothing is happening.

    I have installed and activiated the plug in, I already have some PDFs in my Media Library and I poached an example shortcode from another support post you provided:

    [mla_gallery post_mime_type=”application/pdf” link=file mla_target=”_blank” mla_viewer=true]

    If I understood this right, this should just show all my PDFs…I was going to move on the kimit the PDFs by Category, but cannot even get off the mark.

    Have I missed a simple step – or maybe it is not working?

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


    Since the PDFs are already in your Media Library, they may be unattached or attached to something other than the current post/page. Try adding post_parent=all to your query; you can substitute a category parameter or other selection criteria once you’ve got a working shortcode.

    Also, consider replacing the mla_viewer=true parameter. You could also try size=icon to display an icon for each document, or rely on the default display of the title text for each document.

    Hope that gets you going. If you have any further issues or questions, let me know. Thanks for using the plugin!

    Aha – is it working – thanks. Your were right the media was not attached, just generally in the library.

    At the moment I am feeling overwhelmed with all the options and whilst I do develop software I am new to WordPress and web work is not my thing, so creating new templates is something I am initially hoping to avoid.

    Whilst I don’t wish to take up your time if you can guide me to the best approach that would be useful.

    My initial needs are to present minutes for meetings. I want ‘people’ to be able to upload the minutes to the media library, categorise them (so let say ‘minutes’ and ‘youth-club’, but there could be minutes for many other groups too, hence why I like your tax_operator=”AND”).

    So – all the above I believe I can do.

    My next step is presenting them: I want to put each document on a separate line a bit like a table/grid with a number of columns showing (probably) caption, date (date entered by uploader, not date of upload, i.e. the date of the meeting the minutes were for, so this might be a custom field) and maybe other stuff.

    I suspect I may need to look at creating markup template to achieve my presentation, but I am not sure whether there is an out of the box ‘column, row’ option and how I might define where to get the data for the cells from…and if there are many documents offer a ‘next, previous’ set of links.

    I know – I don’t want much – but just confirmation there is no ‘out of the box’ solution and the fact I need to use a template would be good feedback.



    Update – I am creating a template (using table HTML mainly)…so it is taking shape. I have added Custom Fields from plugin “Advanced Custom Fields” and they are turning up vis “custom:” prefix.

    Now I wish to format the custom field data…it is a date, stored as ISO (e.g. 2013-03-25) – but how do I include processing inctructions with the template?

    I tried popping <?php…?> but the template uses those characters literally? e.g.<?php date(‘F j, Y’, strtotime([+custom:media_date+])); ?>

    May I should be doing it this way?

    Plugin Author David Lingren


    Wow – you’re up early and working hard! I hope you’re back east in a much later time zone (I’m in CA).

    I think you’re on the right track; the custom template is good and the Advanced Custom Fields plugin looks like a great choice. By the way, you can add your custom fields to the Media/Assistant table display by configuring the Settings/Media Library Assistant “Custom” tab.

    You have also bumped up against the limits of the current MLA release as well. The current [+custom: ... +] facility is limited to simple text substitution; no additional formatting is available in the current release. I’m looking at enhancing this about two versions from now, but you’ll be done before I get to it.

    Is there any way you can format the data when it’s added to the custom field? Another alternative would be bit of PHP code or a shortcode on the page displaying the list. It wouldn’t be too hard to create a shortcode that formats the data and stores it in a custom field. You could use the [mla_gallery mla_alt_shortcode=mycustomshortcode] feature to call it just before the “real” [mla_gallery] call.

    If you’re comfortable with PHP but not (yet) with WordPress I can draft some code for you. It would give me a chance to experiment and help shape the future MLA versions. Since this is pretty specific to your situation, could you send me your e-mail address for further communication? I’ll post anything of general interest back to this topic once we’re done. Go to the “Contact Us” page at our web site:

    Fair Trade Judaica/Contact Us

    Thanks for understanding.


    Plugin Author David Lingren


    A recent MLA update, version 1.51, included twenty-five new filters that give you complete control over the content and layout of [mla_gallery] galleries. Have a look at this recent support topic for more information:

    format date

    I hope you’ll find this a more convenient solution than the custom field approach outlined in my earlier post. Let me know if it works for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting NoWhere…I Must Be Doing Something Wrong’ is closed to new replies.