Title: Documents Shortcode
Author: Dougal Campbell
Published: <strong>Ọwẹ́wẹ̀  11, 2012</strong>
Last modified: Ògún  26, 2015

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/documents-shortcode.svg)

# Documents Shortcode

 Láti ọwọ́ [Dougal Campbell](https://profiles.wordpress.org/dougal/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/documents-shortcode.1.0.1.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/documents-shortcode/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/documents-shortcode/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/documents-shortcode/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/documents-shortcode/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/documents-shortcode/)

## Àpèjúwe

By adding a simple `[documents]` shortcode in your post or page, you get a
 list
of all documents (non-image/audio/video) attached. Each item in the document list
can be styled with CSS to indicate different document types based on file extension(
e.g., .doc, .pdf, etc).

## Ìgbéwọlẹ̀

Copy the documents-shortcode folder and its contents to your wp-content/plugins

directory, then activate the plugin. Or better yet, use the built-in `Add New` feature
under your DashboardÌtumọ̀ Yorùbá: ’s `Plugins` menu.

There is no configuration. Just type the `[documents]` shortcode into your
 posts
or pages to generate a list of attached files.

## FAQ

  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.

Examples:

    ```
    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:

    ```
    https://wordpress.org/extend/plugins/ap-extended-mime-types/
    https://wordpress.org/extend/plugins/manage-upload-types/
    http://www.wprecipes.com/wordpress-tip-allow-upload-of-more-file-types
    ```

  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Ìtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’t my attached images appear in the documents list?

By default, images are filtered out of the list (because, thatÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’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.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Documents Shortcode” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe
ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ Dougal Campbell ](https://profiles.wordpress.org/dougal/)

[Túmọ̀ “Documents Shortcode” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/documents-shortcode)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/documents-shortcode/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/documents-shortcode/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/documents-shortcode/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/documents-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

= 1.0.1=
 * Allow CSS URL to be filtered.

#### 1.0

 * Initial release. 2012-09-10

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 11 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **80+**
 *  Ẹ̀yà WordPress ** 2.5 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **4.3.34**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/documents-shortcode/)
 * Àwọn àmì
 * [documents](https://yor.wordpress.org/plugins/tags/documents/)[files](https://yor.wordpress.org/plugins/tags/files/)
   [shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)[shortcode-only](https://yor.wordpress.org/plugins/tags/shortcode-only/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/documents-shortcode/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/documents-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/documents-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/documents-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/documents-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/documents-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/documents-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/documents-shortcode/reviews/)

## Àwọn Olùkópa

 *   [ Dougal Campbell ](https://profiles.wordpress.org/dougal/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/documents-shortcode/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](http://dougal.gunters.org/donate)