Support » Plugin: Media Library Assistant » MLA with Posts Table Pro

  • Resolved lh23


    Hi David,
    I am hoping to pass attachment_categories to Posts Table Pro to display in a PTP table. I have been unsuccessful so far an am not sure this is possible (although it seems like it should be).

    Their help file suggest using the Enhanced Media Library plugin and gives the following method:
    Create a table listing documents from a specific category only. To do this, edit the page where you added the [posts_table] shortcode and expand it by adding the category slug: [posts_table term=”media_category:cat1″] (replace cat1 with the actual slug of your category).

    Do you think there is comparable shortcode syntax that would pull data from MLA?


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


    Thanks for your question and for including the name of the other plugin you are using. I assume you are referring to this premium plugin:

    Posts Table Pro, by BARN2media

    The “Creating tables with specific posts based on category, taxonomy, custom field, date & more” article in their Knowledge Base says that for “Custom Taxonomy term”:

    Use the format: term="<taxonomy slug>:<term slug or ID>".

    The “Enhanced Media Library” plugin works much like MLA. It creates a custom taxonomy, “Media Categories”, whose slug is media_category. MLA creates two custom taxonomies, “Att. Categories” and “Att. Tags”, whose slugs are attachment_category and attachment_tag. Any of these should work with Posts Table Pro.

    For your example you can try something like:

    [posts_table term="attachment_category:cat1"]

    Replacing “cat1” with the term slug of your choice. If you get the taxonomy slug and the term slug right, it should work fine.

    For more advanced applications, you could also use the [mla_gallery] shortcode with the mla_alt_shortcode and mla_alt_ids_name parameters to let MLA select the items you want and let posts_table format the display. The example you gave would be:

    [mla_gallery attachment_category=cat1 mla_alt_shortcode=posts_table mla_alt_ids_name=include]

    That is more complicated and isn’t required for your example, but combining the shortcodes would let you use all of MLA’s data selection features which might give you more options than provided by [posts_table]. You can find more information in the “Support for Other Gallery-generating Shortcodes” section of the Settings/Media Library Assistant Documentation tab.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Any additional details, such as the specific shortcode text you are using, will be helpful. Thanks for your interest in MLA.

    Thank you! I was on the right track, it turned out that I also needed to specify that Posts Table Pro should search only for ‘attachments’ – the following code worked for me:
    [posts_table post_type=”attachment” term=”attachment_category:newsletter”]

    Thanks for all of your always excellent support.

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