Support » Plugin: Media Library Assistant » Need to Categorize and render PDF list

  • Resolved nickchia


    I downloaded the Media Library Assistant plugin to organize a PDF library? Basically, my client has about 80 product publications that they need to make available to their customers. It has to be easy for them to use. I want to set up a page that will list all the products by category. This plugin will have to a allow the user to:
    -create categories for the PDFs
    -upload PDFs
    -assign them each a name
    -permit them to put them in specific order
    -automatically render the list with categories on their “Literature” page.

    This plugin is so involved, and not being great at php, seems really difficult. Is there an easy way for me to figure this out?

    The included link is that page on their current site (not WordPress).The new site will be a WP site and needs to offer this functionality.


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

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


    Thanks for your detailed question and for the link to you client’s web page; very helpful.

    MLA can provide assistance with this application. You should be able to do the job without actually resorting to PHP coding. Here are my initial thoughts:

    -create categories for the PDFs MLA adds taxonomy support for Media Library items. You can use MLA’s “Att. Categories” and/or “Att. Tags” taxonomies to assign terms to the documents. For example, you can assign a term for each of the headings on the web page, e.g., “SigmaFire Steam Generator Specifications” or something shorter like “SigmaFire”. Terms can be assigned during the upload process using MLA’s “Bulk Edit area” on the WordPress Media/Add New (Upload New Media) admin screen. They can be added or modified later using the Media/Assistant Bulk Edit or Quick Edit areas, or on the WordPress Media/Edit Media acreen.

    -upload PDFs As noted above, users can upload new documents with the WordPress Media/Add New (Upload New Media) admin screen. MLA does not have or require a process of its own, but it does add the “Bulk Edit area” to the WordPress admin screen.

    -assign them each a name WordPress will derive a Title for each item from the file name. Your client’s file names are not very helpful for this purpose. Once the documents are uploaded you can use the Media/Assistant Quick Edit area or the WordPress Media/Edit screen to update the Title value.

    -permit them to put them in specific order You can use the WordPress-standard “Menu Order” field to arrange the documents in a specific order. You could also sort on the document Title, but this would put “Model E154” after “Model 1004”, which would look odd. You could define a custom field and assign values like “E0154” and “E1004” to fix the sorting problem in a more logical way than using the Menu Order.

    -automatically render the list with categories on their “Literature” page. You can use the [mla_gallery] shortcode for this purpose. There are several ways to implement the page; the simplest would be to have a separate shortcode for each of the headings on the page. For example:

    <h2>SigmaFire Steam Generator Specifications</h2>
    [mla_gallery attachment_category=sigmafire post_mime_type=application/pdf orderby=menu_order]
    <h2>E-Series Standard and FMB Burner Steam Generator Specifications</h2>

    You can also use the IPTC metadata support for PDF documents to pre-populate values like the Title and categories and then use MLA’s mapping rules to extract the metadata and use it to update your items. I had a look at one of your client’s documents and aside from “Author” the fields are empty. Adding the metadata you want would be a separate step.

    As you’ve observed, MLA is powerful but can be complex. I know the Settings/Media Library Assistant Documentation tab is more reference than tutorial. I do my nest to answer questions here in the support forum and fill in the blanks. You may be interested in these earlier topics along similar lines:

    Just start with it

    Generate a table with pdf-files

    Problems with PDFs

    I hope that gets you started on a solution for your client. I am marking this topic resolved, but please update it or start another topic if you have problems or further questions regarding the above suggestions. I am happy to give you whatever help I can in using MLA; thanks for your interest in the plugin.



    Hi categorising PDFs is where I started out with Media Library Assistant. In my case I used the document properties available in the original authoring package (MS Word) to define the categories and then used MLA’s rules to populate the meta data in WordPress. These were then formatted using the style and markup settings in MLA and displayed on Pages using the shortcode.

    Here’s some example outputs

    I also created a debug page that lists the key details titles in my case then the details held in the PDFs.



    Thank you for these responses. I will follow these instructions.



    Hi David,

    Your instructions worked perfectly. The only issue I am having is that I cannot get the media Title to render under the thumbnail. Ideally, I would like to only generate an unordered list with links to each PDF. But I can also do a gallery view as long as the PDF Titles render. Here is the page:

    Thanx a ton,

    • This reply was modified 2 months ago by nickchia.
    Plugin Author David Lingren


    @cuckoofairweb – Thanks for adding your comments to this topic and the links to your site. I really like the debug page you created.


    Thanks for the good news regarding my suggestions and the link to your gallery page, which looks good.

    The easiest way to add a caption to your thumbnail images is to add the mla_caption parameter to your shortcodes. For example:

    [mla_gallery mla_caption="{+title+}" attachment_category=sigmafire post_mime_type=application/pdf orderby=menu_order]

    You can find more information in the “Attachment-specific substitution parameters for the markup template Item part” section of the Settings/Media Library Assistant Documentation tab.

    Of course, you could also define a custom markup template to gain more control over the gallery composition, but that’s more work.




    Thanx soooo much! You’re awesome!!!

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