Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Documents Shortcode

A `[documents]` shortcode which will display a list of attached files, with file type icons, and linked to the files for easy downloading.

Where is the settings page?

There is no settings page. Just upload attachments to a post or page, and put the [documents] shortcode where you wish the list of attachments to appear.

How can I limit which attachments are listed?

There are two attributes you can use with the shortcode to control which attached documents are listed: mimetype and ext.

The default match is for mimetype application/*. For other types, you will need to specifically override that attribute.


Just .XLS files:
  `[documents ext="xls"]`

All .DOC, .DOCX, or .PDF files:
  `[documents ext="doc,docx,pdf"]`

Only 'video' types with a .MOV extension:
  `[documents mimetype="video" ext="mov"]`

Just application/pdf mimetypes:
  `[documents mimetype="application/pdf"]`

All attached documents, regardless of type:
  `[documents mimetype="*"]`

I got an error trying to upload a file!

If WordPress tells you that a file failed to upload due to an error ("Sorry, this file type is not permitted for security reasons."), you may need to adjust the list of allowed file extensions. For more information on how to do this, see:


How do I change the styling?

See the dc_documents.css file for the default styles. Document icons are in the images sub-folder of the plugin.

You can override these styles in your theme's CSS by adding more specific selectors. For example, you could change the font used for the file titles in posts with a rule similar to this:

`.post ul.dc_documents li a { font-family: Courier,monospace; }`

Why don't my attached images appear in the documents list?

By default, images are filtered out of the list (because, that's what galleries are for, right?). If you want to list all attached documents, with no filtering, just say so:

`[documents mimetype="*"]`

What file types are supported?

Technically, any file type that WordPress will allow you to upload as an attachment (see above). More specifically, there are icons included for the following types of files:

PDF: `.pdf`
MS Word: `.doc`, `.docx`
MS Excel: `.xls`, `.xlsx`
MS PowerPoint: `.ppt`, `.pptx`
MS Visio Diagrams: `.vsd`, `.vsdx`
MS Access Database: `.mdb`, `.mdbx`
ZIP: `.zip`

Any other extension will display a generic text document icon. I realize this list is slanted towards Microsoft applications, but that's just due to the original plugin usage. Other extension => icon mappings will be added in the future, and I am open to suggestions.

Can you make the icon bigger/smaller?

At this time, the only supported icon size is 32 x 32 pixels.

Requires: 2.5 or higher
Compatible up to: 4.3.8
Last Updated: 1 year ago
Active Installs: 400+


5 out of 5 stars


Got something to say? Need help?


Not enough data

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

100,2,2 100,1,1