Description
Display a list of the attachments that were added to a post or page by the Attachments plugin.
The Attachments plugin allows you to easily append items from the media library to posts, pages, etc, but does not directly interact with the theme.
This plugin will display an list of those items, each as a link to the file.
Compatibility with the Attachments plugin
This plugin was developed and tested with version 1.5.2 of the Attachments plugin. Feedback on success/failure with other versions of the plugin welcome.
Kudos to Jonathan Christopher for the Attachments plugin.
Screenshots
Installation
- Upload the plugin to your blog.
- Activate it.
- Use the “Attachments” plugin to add media files to posts and pages.
-
Show the attachments for a post or page using one of the following methods:
- Add the “Attachments List” widget to the sidebar,
- Add the shortcode [attachments-list] to a post or page, or
- Place
<?php show_attachments_list(); ?>
in your templates
-
You’re done!
FAQ
- How do I attach media files to my posts?
-
You’ll need to install the Attachments plugin. It’s awesome.
This plugin is just to display the attachments.
- How do I show a different icon size using the shortcode?
-
Use the “size” parameter. For example, [attachment-list size=”medium”]
Sizes available:
* default: 46 x 60
* medium: 34 x 45
* small: 23 x 30
* casual: 50 x 55
* none: text only - How about specifying a size using the function?
-
Here’s an example:
<?php show_attachments_list('small'); ?>
- Where did the “casual” icons come from ?
-
It’s a set of images I found at MimeTypes_DroplineEtiquette_mimetypes. They’re cute, right?
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Simple News” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Simple News” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1
- Added “casual” icon set
- Added Widget support
- Converted images to sprites