List Related Attachments

March 13, 2019

List Related Attachments Plugin

Listed Related Attachments will display a filtered list of all related attachments for the current post or page.

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.

Installation

  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 wordpress.org.
  8. Leave a comment regarding bugs, feature request, cocktail recipes at: https://wordpress.org/support/plugin/list-related-attachments-widget

Screenshots

  1. Shown here are the available options of the <code>List Related Attachments</code>. See any more you like? Let us know!

    Shown here are the available options of the List Related Attachments. See any more you like? Let us know!

  2. 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.

    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.

  3. Hide your kids, hide your husband, this is how the shortcode works.

    Hide your kids, hide your husband, this is how the shortcode works.

FAQ

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?

42

Who likes to rock the party?

We like to rock the party.

Changelog

2.1.6

  • fixed the shortcake attribute extract function

2.1.5

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

2.1.4

  • fully tested with WordPress 4.9.9

2.1.3

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

2.1.2

  • added new parent_id attribute to override current page

2.1.1

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

2.1.0

  • using new php5 constructor for widget

2.0.1

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

2.0

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

1.9

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

1.8

  • Plugin now supports multi-language and multiple instances

1.7

  • 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 (https://wordpress.org/support/profile/oldbrit) suggesting these ideas! (https://wordpress.org/support/topic/plugin-list-related-attachments-title-caption-or-description/)

1.6.1

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

1.6

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

1.5

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

1.4

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

1.3

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

1.2

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

1.1

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

1.0

  • The plugin came to be.

Details

  • Version: 2.1.6
  • Active installations: 100
  • WordPress Version: 4.7
  • Tested up to: 5.1.19
  • PHP Version: 7.0

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars