This plugin hasn’t been tested with the latest three major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Document Gallery for Real Media Library


This plugin needs version > 4.3.2 of the Document Gallery plugin.

Watch the following video for a brief demonstration of Document Gallery in action:

Just install this plugin and you will be able to use the following shortcode: [dg id=-1 rml_folder=28]. The rml_folder attribute is the ID of the folder.

How do you get the folder ID? Simply use the Real Media Library shortcode generator (visual editor toolbar) and select your folder. Then generate the shortcode and have a look at the fid attribute which represents your folder id.

This plugin is an extension for the WP Real Media Library plugin that allows you to create folders in media library.
This plugin needs version >= 3.0 of the WP Real Media Library plugin.


  1. Goto your wordpress backend
  2. Navigate to Plugins > Add new
  3. Search for “Document Gallery for Real Media Library”
  4. “Install”


Why are folders grayed out in the RML shortcode generator dialog?

The Real Media Library shortcode generator does not allow all folders after installation. This is an extra option you must set in Settings > Media “Allow all folders for folder gallery”.


September 2, 2019
I get this alert in the admin: The plugin Real Media Library is not active (maybe not installed neither) or the version of Real Media Library is < 2.8 (please update).
December 1, 2018
Matthias has just resolved a problem for me, which was entirely of my own making! Having encountered the problem, I reached out for some help and guidance. I had a very prompt response, with a simple request for admin access to my site. Matthias very quickly identified my error and fixed it. The entire process was quick and efficient. What is more he merely referenced a link to the documentation I should have followed - no judgement. This is very refreshing experience, and it shows both professionalism and pride in the quality of both product and support. Thank you.
Read all 2 reviews

Contributors & Developers

“Document Gallery for Real Media Library” is open source software. The following people have contributed to this plugin.


Change log


  • Initial Release.