Title: Simple Example
Last modified: August 30, 2016

---

# Simple Example

 *  Resolved [QBALL123456](https://wordpress.org/support/users/qball123456/)
 * (@qball123456)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/simple-example/)
 * Hi, can you please give an easy example of how to show all documents in a specific
   category. I used your pdf example and it shows all pdf’s in all categories. As
   soon as I try to change something it shows nothing. I have word docs, pdfs, images
   etc in one category and would just like to show them in a list format.
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

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

 *  Thread Starter [QBALL123456](https://wordpress.org/support/users/qball123456/)
 * (@qball123456)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/simple-example/#post-6473722)
 * And it does not show docx files. Seems to only work for images and pdf files.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/simple-example/#post-6473795)
 * Thanks for your question. From the examples you have already found you can see
   that the `post_mime_type` parameter is the key to getting the results you want.
   The simplest example I can think of is:
 *     ```
       [mla_gallery post_mime_type=all attachment_category=some-category]
       ```
   
 * If you want a more list-like format and a direct link to the document file you
   can try something like:
 *     ```
       [mla_gallery columns=1 link=file size=icon post_mime_type=all attachment_category=some-category]
       ```
   
 * In this example, `size=icon` will give you thumbnail images for the non-image
   items. If you want to replace the default captions with your document titles,
   try:
 *     ```
       [mla_gallery mla_caption="{+title+}" columns=1 link=file size=icon post_mime_type=all attachment_category=some-category]
       ```
   
 * You may have already found this earlier topic, which has links to several topics
   dealing with list formatting applications:
 * [Simple list](https://wordpress.org/support/topic/simple-list-1)
 * If the above suggestions are not working for you, post the source text of your
   shortcode(s) and any additional information you think useful and I will look 
   more closely at your application.
 * I am marking this topic resolved, but please update it if you have problems or
   further questions about using `[mla_gallery]` to display non-image Media Library
   items. Thanks for your interest in the plugin.

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

The topic ‘Simple Example’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)

 * 2 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/simple-example/#post-6473795)
 * Status: resolved