Title: Shortcode Does nothing?
Last modified: December 14, 2016

---

# Shortcode Does nothing?

 *  Resolved [benjjamieson](https://wordpress.org/support/users/benjjamieson/)
 * (@benjjamieson)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/help-shortcode-does-nothing/)
 * _[ Moderator note: [title adjusted, please refrain from using help, urgent, emergency, asap, etc. in topic titles.](http://codex.wordpress.org/Forum_Welcome#Choose_A_Good_Topic_Title)]_
 * Hi There,
 * I’m new to MLA, and am trying to get this working for a download library.
 * 1: I added two PDF files in a category called “Club Resources” with a slug of‘
   club-resources’.
 * 2: I create a new, blank page for testing on the site.
 * 3: Add the shortcode to display the files.
 * Nothing displays.
 * So far, here are the shortcodes I have tried:
 * `[mla_gallery attachment_category=club-resources mla_caption='<a href="{+downloadlink_url
   +}">{+post_title+}</a>' mla_output=list]`
 * `[mla_gallery attachment_category=club-resources]`
 * `[mla_gallery post_mime_type="application/pdf"]`
 * All just produce a blank page.
 * Am I missing something obvious?

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/help-shortcode-does-nothing/#post-8549645)
 * Thanks for your question and for posting the source text of the shortcodes you’ve
   experimented with. I think a few adjustments will help get you what you want.
 * Try adding `post_mime_type="application/pdf"` to your first example, i.e.,
 *     ```
       [mla_gallery attachment_category=club-resources post_mime_type="application/pdf" mla_caption='<a href="{+downloadlink_url+}">{+post_title+}</a>' mla_output=list]
       ```
   
 * Your first and second examples fail because the default `post_mime_type` is “
   image” and won’t display PDF items. Your third example fails because by default
   only those items “attached” to the current post/page are selected. You could 
   change it to something like this:
 *     ```
       [mla_gallery post_mime_type="application/pdf" post_parent=all]
       ```
   
 * to display all the PDF documents in the Media Library.
 * I am marking this topic resolved, but please update it if you have any problems
   or further questions regarding the above suggestions. Thanks for your interest
   in the plugin.
    -  This reply was modified 9 years, 5 months ago by [David Lingren](https://wordpress.org/support/users/dglingren/).

Viewing 1 replies (of 1 total)

The topic ‘Shortcode Does nothing?’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [benjjamieson](https://wordpress.org/support/users/benjjamieson/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/help-shortcode-does-nothing/#post-8549645)
 * Status: resolved