Media Library Shortcode WordPress PluginThe Media Library Shortcode plugin allows you to use a shortcode to create a list of documents using the document’s corresponding ID. Example: [attachment id="1,2,3"]. The list of ID’s must be enclosed in quotes and comma separated. You can also sort documents by type and find document ID’s in the media library.

Plugin Features Include

  • Add the shortcode to pages, posts and widgets
  • Sort media library documents by type
  • Document ID column in the media library


  1. Upload the ‘media-library-shortcode’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to ‘Media > Shortcode’ for instructions on how to use the shortcode.


4 Comments for “Media Library Shortcode WordPress Plugin”

  1. finid says:

    Will it be possible to use a short code to list all the posts in a category or a list of categories?

    • Tanner Hobin says:


      Thanks for the comment. This plugin is developed specifically for media library items, so no, you couldn’t list posts in a category or a list of categories. However, if you can provide more detail about what you’re trying to do I would be more than happy to help.

  2. Hugh says:

    Is it possible to list attachments of a certain type, e.g. [attachment type=PDF]? Or maybe use the “media-tags” attribute, i.e. [attachment media-tags=”documents”]?

    Also, @finid, what you want to do is possible with the WP Render Blogroll plugin.


  3. Tanner Hobin says:

    @Hugh, great suggestion! I’m confident we could add the functionality you mentioned. This is a very small side project that unfortunately gets very little attention, so I can’t give you a time frame for completing the addition. You’re welcome to adjust the code as you see fit though.