Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Media Library Gallery

Automatically creates a gallery with every images posts have in attachment.

  1. Upload the directory media-library-gallery into your /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Now select the page and/or the post where you want to include your gallery. When you find a room in your page just write something like: [media-library-gallery].
  4. Or use the assistant which should be in the toolbar of you editor!
  5. Then, you can customize:
  • exclude to exclude some attachment posts of the gallery. It works both with posts'id and attachments' pages' id!
  • nb determines how many pictures you want for a gallery page. Default is 20.
  • cols determines how many pictures you want for a row. Default is everything on the same row. Depending of your theme, images should be automatically displayed on a new row when there is no more room on the width.
  • tag allows to filter posts by tags. tag="hello,world" will give attachments from posts tagged with hello or world ; tag="hello world" will give attachments from posts tagged with helloand world.
  • category makes exactly the same, but for categories. Take care! If you use in the same time the tag and the category option it makes an logical AND between the two.
  • orderby should be one of the following: date, author, title, modified, menu_order, parent, ID, rand. See the WordPress get_posts documentation for more information.
  • order should be ASC or DESC.
  • So... [media-library-gallery exclude="12,13,14" nb=20 cols=4 tag="photos" category="holiday" orderby="date" order="DESC"] should display images from posts tagged with photos from the holiday category, with 20 images a page, 4 images a row. Most recent images should be displayed first. And it won't display images related to IDS 12, 13, 14.

You can also call directly the plugin in your template code. Call the media_library_gallery_library() function and give it the options you want as an array. For instance media_library_gallery_library(array("nb"=>2, "cols"=>1));. Could be useful to display it in a sidebar!

Requires: 2.3 or higher
Compatible up to: 2.8.6
Last Updated: 7 years ago
Active Installs: 1,000+


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.