3heads-gear3headschatchecklistglobehead-lockhead-plusimaclife-ringlogo-cornelllogo-melbournelogo-northhamptonlogo-portsmouthlogo-small logo-vancouverlogo-yokohamamail-line mail-wings pdf pie-chartplayplugprinter skype website
Print Friendly

The Media Tree plugin allows you to easily group files into categories and display them in “tree” view in a post or page using shortcode.

Shortcode is a WordPress-specific code that enables you to do things that normally would require lots of complicated, ugly code.

Here’s what a media tree looks like when added to a post:

[wmd-media-tree category=”0″ link_type=”file” collapsed=”1″ ls-id=”55b5c910afdf1″/]

Media trees are a great way of organizing important documents like Tasks, Assignments, Homework for students to easily find and download.

Using Media Tree

To get started you need to activate the following two plugins in Plugins > All:

  1. Media Tree
  2. Live ShortCode

Activate plugins

Add Categories to Media files

To display files in a Media tree you need to assign categories to files.

New Media Files

The simplest way to add categories to new media files is to upload the files to your media library as follows:

1.  Go to Media > Add New

Add New

2.  On the Upload Media page click on the Select Files to choose a file from your computer to upload.

Select files to upload

3.  Locate the file(s) on your hard drive

4.  Click Open to start uploading the file

5.  While your file(s) are uploading you will see a progress bar.

6.  When a file has finished uploading, you will see a Edit link on the right.

Edit link

7.  Click on the Edit link to add the category to the file by selecting from an existing category or adding a new category then click Update.

Add Category

Existing media files

The simplest way to add categories to existing media files is to:

1.  Go to Media > Library

Media Library

2.  Change to List View.

Click on List View

3.  Click on the Edit link to add the category to the file by selecting from an existing category or adding a new category then click Update.

Click on Edit

Add media files to posts and pages

Once you’ve added the desired categories to your media files you add the media tree to a post or page as follows:

1.  Go to Posts > Add New (or Pages > Add New)

Add New Post

2.  Click on Add Shortcode button

Add Shortcodes

3.  Click on Media Tree 

Click on Media Tree

4.  Select which media categories you want to display and if you want the folders to initially open or be collapsed and then click Insert Shortcode.

Select media tree options

5.  The media tree is now inserted into the post and readers just need to click on the name of a media file to view it on their computer.