WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!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: 2009-12-13
Downloads: 29,736

Ratings

4 stars
4.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
71,7,5
50,2,1
67,3,2
100,2,2
100,1,1
100,1,1
67,3,2
100,4,4