WordPress.org

Ready to get started?Download WordPress

Plugin Directory

EG-Attachments

This plugin add a shortcode to display the list of attachments of a post, with icon and details. EG-Attachments is "TinyMCE integrated".

How to display documents that are not related to the current post?

You have two ways:

  • Specify, with parameter id, the post to which documents are attached,
  • With the parameter docid, give the list of documents you want to display.

During post edition, how can I see the list of attachments that will be displayed?

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.

Could I have some examples of the usage of `orderby` shortcode option?

  • orderby="mime DESC" to sort by mime type descending,
  • orderby=date or orderby="date ASC" to sort by date ascending,

How can I display attachments by modifying my templates?

In your single.php file, add the following code: <?php echo do_shortcode('[attachments *shortcode options*]'); ?>

How can I change the styles?

The stylesheet is named eg-attachments.css, and can be stored in two places:

  • In the plugin directory,
  • In the directory of your current theme

I would like to change the icons

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.

I click on a document to test statistics, but counters stay flat

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.

I put %TARGET% tag in templates, but the attribut `target="_blank"`doesn't 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)

When I ask to display the image thumbnails, the thumbnail displayed is bigger than expected

If the size of the image thumbnail is set to 150x150 in WordPress, or in your theme, in the attachment list, the thumbnail displayed will be 150x150, 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.5.0 or higher
Compatible up to: 3.9.0
Last Updated: 2014-4-15
Downloads: 41,363

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
0,1,0 100,2,2 100,1,1 100,1,1
50,2,1 100,1,1
100,4,4 100,1,1 100,1,1 100,1,1
100,1,1 67,3,2 100,1,1 100,1,1
100,1,1 100,4,4
0,1,0
100,2,2 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 50,2,1 100,1,1
100,2,2 50,2,1 100,2,2 100,1,1 100,1,1 100,3,3 100,1,1 50,2,1 75,4,3
100,3,3 100,1,1 100,1,1 100,1,1
50,2,1 100,2,2 100,3,3 75,4,3 67,3,2 100,2,2
100,1,1
100,1,1
100,1,1
100,3,3 100,1,1
100,1,1 100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
50,6,3 50,2,1 100,1,1
100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
100,1,1