This plugin add a shortcode to display the list of attachments of a post, with icon and details. EG-Attachments is "TinyMCE integrated".
You have two ways:
In the menu Settings / EG-Attachments, in the chapter Administration interface, you can choose to show or hide, a metabox that displays attachments of the post being edited.
single.php file, add the following code:
<?php echo do_shortcode('[attachments *shortcode options*]'); ?>
The stylesheet is named eg-attachments.css, and can be stored in two places:
Just copy/upload your own icons in the
images subdirectory of the plugin.
Size of icons must be 52x52 or 48x48. Name of icons must be the mimetype or file extension.
EG-Attachments uses a cache to build statistics, avoiding to launch heavy queries, each time you want to see statistics. The cache duration is 15 minutes. If you want to test statistics, click on several attached files, and then wait 15 minutes, your clicks will appear.
The %TARGET% tag is used only when the parameter target is specified in the shortcode, or the option target=blank attribute is checked in the plugin settings page (Menu Settings / EG-Attachments)
If the size of the image thumbnail is set to 150x150 in WordPress, or in your theme, the thumbnail displayed could be 150x150 in the attachment list, even if you request a smaller size like 48x48 in EG-Attachment, This issue is coming from the styles used by your theme. If your theme is responsive, then the stylesheet should contain some styles to adapt the image size according the screen size. To solve this issue, you need to change these styles, in order to exclude the images of the attachments' list.
Requires: 3.9.0 or higher
Compatible up to: 4.2.0
Last Updated: 2015-4-26
Active Installs: 4,000+
1 of 3 support threads in the last two months have been resolved.
Got something to say? Need help?