This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

List Related Attachments


List Related Attachments is a sidebar widget and shortcode that will display a filtered, sorted and ordered list of all related attachments linked to current post or page. The widget options are: title, number of attachments to display, type of attachment to display by mime/type, order by value, order direction and what should be displayed (attachment title, caption or description). A complete listing of shortcode options and attribute demos are available that delight and inform. What’s more, there is excellent and free community support and a super-duper online language translation tool to roll-your-own language files.


  • Shown here are the available options of the List Related Attachments. See any more you like? Let us know!
  • For your viewing pleasure: The sidebar widget in the midst of some hot-hot sidebar widget action. Calm down now… it’s not THAT exciting.
  • Hide your kids, hide your husband, this is how the shortcode works.


  1. Old-school: upload the List Related Attachments folder to the /wp-content/plugins/ directory via FTP. Hipster: Add the plugin via the WordPress Plugins menu.
  2. Activate the Plugin
  3. Add the Widget to the desired sidebar in the WordPress Widgets menu.
  4. Configure the Listed Related Attachments widget options.
  5. Add a the shortcode to your post like so: [list-related-attach type="application/zip" count="3" orderby="title" order="ASC" show="caption"]
  6. Test that the this plugin meets your demanding needs.
  7. Rate the plugin and verify that it works at
  8. Leave a comment regarding bugs, feature request, cocktail recipes at:


What are the default shortcode attributes?
  1. type = “application” (so basically everything)
  2. count = “-1” (so everything)
  3. orderby = “date” (by the date the attachment was added)
  4. order = “DESC” (Descending in the newest to oldest direction)
  5. show = “title” (The title of the attachment)
  6. link_so = “file” (as opposed to the attachment page)
I am going to a respectable cocktail bar, can you recommend a drink?

Gin Basel Smash

I am a Social Netwookiee, do you have a Facebook page?

Yes, yes… Twinpictures is on Facebook.

Does Twinpictures do the Twitter?

Ah yes! @Twinpictures does the twitter tweeting around here.

Where can I go for jokes and fun?

Why not try: Jokes & Fun

What is the meaning of life, the universe and everything?


Who likes to rock the party?

We like to rock the party.


3 di Setembar dal 2016
Nice, simple plugin that does what it says and the author is very responsive with support.
Read all 1 review

Contributors & Developers

“List Related Attachments” is open source software. The following people have contributed to this plugin.




  • fixed the shortcake attribute extract function


  • replaced exctract with shortcode_atts function
  • fully tested with WordPress 5.1
  • updated http to https


  • fully tested with WordPress 4.9.9


  • supports WordPress language packs, no longer ships with all languages
  • fully tested with WordPress 4.5


  • added new parent_id attribute to override current page


  • adjusted php5 constructor play well with older php versions
  • changed text domain so it works with new WordPress Translation service


  • using new php5 constructor for widget


  • cleaned up the readme file
  • first check to make sure there is a pageID before trying to grab it’s attachments


  • Rebuilt plugin
  • Added options page
  • added link_to option to link to file or attachment page
  • added language translation


  • Only the attachments of the first post will be displayed when the sidebar widget is used on the blog page.


  • Plugin now supports multi-language and multiple instances


  • Added the ability to chose a target for the attachment (for example a new tab)
  • Expanded the display/show attribute to list multiple attributes such as title – caption or title (description)
  • A big Thank You to oldbrit ( suggesting these ideas! (


  • Vastly enhanced documentation and moved the plugin over to the plugin oven.


  • Optimized code and added mime-type classes to list items.


  • Fixed a bug in the shortcode (Big thanks to motylanogha for reporting this). NOW the plugin works 100% like it should… I think.


  • Options now allow to choose from the attachment title, caption or description as the text that is displayed in the attachment link.


  • Expanded the options to include orderby and order… for Ultimater Flexibility — yes, Ultimater is not a real word, but just go with it, OK?


  • Added shortcode so that related attachments can be listed withing the page loop. Listing related attachments is not just for sidebar widgets anymore.


  • Changed mime/type to a text input field for Ultimate Flexibility.
  • Pimped this readme.txt file.
  • Added the plugin to


  • The plugin came to be.