The purpose of the Media Library Plugin is to facilitate the manipulation and grouping of images within the existing WordPress image library framework.
[Most recent Media Library Plugin updates]
August 31st 2011 – Release 3.3
- Added ability to order images within Gallery objects.
- By going into Galleries >> Options, you may now change the gallery shortcode used for viewing a Gallery object.
- Gallery objects now have Shiba Widgets support.
- The “Insert into Post” button should now appear on custom post types.
- Removed image parallelization option. As outlined in Google Page Speed, new browsers now allow more than two concurrent connections per hostname. As such, the image parallelization option is no longer needed.
When creating permalink structures, care must to taken to ensure that the new structure does not override existing post, page, category, and tag permalinks.
Key Features of the Media Library Plugin
- Adds a new drop-down menu to your existing WordPress Media Library. This menu will allow you to do bulk attachments to both attached and non-attached images.
- The interface you use will be identical to the existing Media Library interface, except now, you can do bulk attachments on any image object.
- Detach a set of images from their post so that they revert back to their unattached state.
- Enables image tagging and allows you to group images into galleries by using their tags.
In this way you can include the same image into multiple galleries. - In addition to images/attachments, galleries may also contain posts and other galleries. In this way, you group not only images, but also posts, galleries, and any combination of these object types. Here are some fun things you can achieve with expanded galleries.
- Freely order images, posts, and pages within a gallery.
- Gallery objects get saved into your WordPress export files. This allows you to keep a backup of your gallery objects, as well as move them from blog to blog.
- Expanded search that allows you to search for attachments and galleries based on titles, tags, and categories.
- View most-used tags for post, attachment, and gallery objects.

The Power of Galleries and Tags
Gallery objects are stored in the regular WordPress post database. In this way, you get to leverage almost all existing functions that are available for WordPress post objects including displaying your galleries using the WordPress gallery shortcode.
Here are three example galleries created using tags. Galleries are rendered using the WordPress Gallery shortcode and the Shiba Gallery Plugin.
Galleries created with the Media Library Plugin should also work with other plugins that support the WordPress gallery shortcode.
Three example galleries constructed with image tags.
This entire plugin operates within the current WordPress Media Library framework so any tag changes will automatically be reflected in your WordPress gallery shortcode results.
If you want to extract images with particular tags using PHP, just include the tags in your WordPress get_posts command.
$args = array( 'post_type' => 'attachment', 'tag' => 'tag-a,tag-b,tag-c' ); $attachments = get_posts( $args );
Why Can’t I Use Tags in the Gallery Shortcode?
The Shiba Media Library addresses the media library back-end and sets up tag links in the WordPress database. I.e., there is a link in the database saying that a particular image is linked to a given tag.
For tags to work in the gallery shortcode, it must also be supported on the gallery front-end – i.e., by the plugin that renders your images. The Shiba Gallery plugin, for example, supports image tags.
However, most gallery rendering plugins do not yet support this extension because it is currently not part of the native WordPress gallery shortcode and is therefore not a standard.
Media Library Plugin Future Additions
- Allow your own image/attachment directory structure in addition to the WordPress upload directory.
- Import images from a URL folder or a local folder. [Pescadito]
Media Library Plugin Updates
The new version of the plugin only operates on WordPress 3.0 and above.
- If you are using WordPress 2.9, then please download Shiba Media Library 3.0.
- If you are using WordPress 2.8, please download Media Library Plugin 2.2.
- Shiba Media Library 3.2
February 16th, 2011- Updated for WordPress 3.1, RC4. Tested on WP 3.0 and WP 3.1,RC4.
- Fixed bulk trash operation on Gallery screen.
- Permalinks now work properly on network activation and deactivation in WordPress Multisite.
- Columns from other plugins are now properly added in the Media Library screen.
- Shiba Media Library 3.1
January 17th, 2011- Updated for WordPress 3.1. Tested in WP 3.0 and WP 3.1,RC2.
- Fixed numerous bugs in the gallery query system. Gallery types should now work properly.
- Cleaned up the plugin so that gallery objects are now always custom post types. As a result the plugin requires WP 3.0 and above. If you are using WP 2.9, then please download Shiba Media Library 3.0.
- Shiba Media Library 3.0.3
November 25th, 2010- Fixed bulk operations in the Google Chrome browser. Shiba Media Library now has its own menu in the media screen.
- Cleaned up the gallery tagging system so that tagged gallery images can now be properly ordered with order, orderby, numberposts, and offset arguments. This makes it much easier to enable gallery paging.
- Shiba Media Library 3.0
August 13th 2010- Added ability to append image tags in bulk as requested by Peder.
- Re-enabled Insert into Post button even for images that are already attached.
- Shiba Media Library 2.9
- Shiba Media Library Plugin is now updated for WordPress 3.0. It should work in 3.0 and 2.9+.
- All your previous gallery objects should still work seamlessly in the new update.
- Expanded image attachment and detachment functions are now better integrated into the standard WordPress Media Library interface.
- You may set your gallery permalink structure by going into Settings >> Permalinks
- Fixed PHP notices. Thanks to Writemcodeboy for alerting me to this issue.
- Media Library Plugin 2.7
Added in the ability to parallelize your image links. This enables more images to be downloaded simultaneously, and improves page speed.Also fixed some bugs associated with the permalink creation function. In particular, I refined the regular expression for gallery attachment images and added more rules for validating the gallery permalink structure.
- Media Library Plugin 2.6
As requested by Keoshi, I have added in the ability to edit your entire gallery permalink structure.- Media Library Plugin 2.5
I just finished making some large changes to the permalink redirect code. If you are having permalink redirect issues, in particular with your feeds, then please download the latest version.
- Media Library Plugin 2.4
- Added most-used attachment and gallery tag views.
- Permalink support and customization for gallery objects.
- Expanded media and gallery search.
- Plugin is cleaner and more secure.
Thanks to A.M. for making many of the great suggestions that went into this plugin update.
- Media Library Plugin 2.3
- Expanded gallery objects so that they may contain posts, pages, and other gallery objects; in addition to image attachments.
- You may now assign thumbnails to galleries. This uses the Post Thumbnail system introduced in WordPress 2.9, so you will need at least version 2.9 and a gallery front-end that knows how to render posts to fully realize the power of this feature.
- You can now navigate to gallery objects, just like you do with attachments. Gallery object pages are rendered using the gallery shortcode.
** Thanks to Keoshi for making many of the great suggestions that went into this plugin update.
- Media Library Plugin 2.2
Fixed a bug in Release 2.1 where Trash links for posts and pages no longer work properly. This is an important bug fix so please download the latest version of the plugin.
- Media Library Plugin 2.1
- Added bulk-actions, search, and date filter to the Manage Gallery screen. Now you can perform the same menu view operations on galleries as you can with posts and pages.
- Integrated the Manage Gallery menu with the WordPress Trash system. Now you can move galleries to the trash, untrash, or delete them permanently.
- Fixed various bugs with gallery links, trash links, as well as image tags. The gallery and tag system should now work a lot more smoothly.
- Media Library Plugin 2.0
Allows you to tag your images. Through tagging, you can include the same image into multiple galleries.- Media Library Plugin 1.0
Allows you to re-attach multiple images to any post from the Media Library panel. Also enables bulk image detachments. Works on WordPress 2.8







Shiba Gallery 3.7 (5)
WordPress Gallery Plugin (163)
Shiba is conflicting with NextGen gallery. The plugin was included with a theme and it’s limitations require the use of NextGen gallery. The issue is caused by the $this->helper->admin_init(); line in the shiba-media-library.php file on line 182. If I comment it out then NextGen works but then I can no longer add images to the Shiba galleries. I hope since Shiba contains fewer lines of code that it will not be to hard to fix this issue. I await your reply. Thank you very much.
Hello Tom,
I would not advise using both Shiba Media and NextGen together. Both plugins expand on the native media library and does similar things. Structurally, creating some galleries in Shiba Media and others in NextGen would be messy. Programmatically, the two plugins operate in the same space, but each go in a different direction. As a result, there will likely be many conflicts in many places.
The helper admin_init function loads many of the elements in Shiba Media, thus disabling that pretty much nullifies most of the plugin.
Probably the cleanest way to fix this issue is to get the theme creator or hire someone to adapt the theme to work on NextGen.
Just the plugin I was looking for, after my client attached all the images to posts, stopping them getting picked up by some custom functionality I added.
)
Many thanks. Saved me time manually updating the d/b.
I respect what you did here. A gallery with custom post types is something I’m after for some time now, and it seems like nobody have every outdone you. I’m having some difficulties however.
1. First when I click on the thumbnails they do not work. Only the first picture is displayed as main and cannot be changed. I’ve tried changing the slider type, but with no avail.
2. Permalink structure does not work. I’ve tried adding at: Gallery Structure: %gallery% . Then I tried to open site.com/gallery/gallery-name instead of the site.com/?gallery=gallery-name and it only redirectects me to site.com/?gallery=gallery-name again. Maybe it has something to do with my WordPress MultiSite installation.
Can you help me with these?
1. I am not sure what you mean. Is there a page that I can look at? What do you mean by “slider type”?
2. Try “/gallery/%gallery%”. It does not allow just %gallery% because that would result in a permalink conflict.
1. http://goo.gl/H4GBf
Here is a gallery page created, but it doesn’t work. When you click on the thumbnails nothing happens.
2. “/gallery/%gallery%” did the job! That’s perfect, thanks!
I’ve tried changing most of the gallery types (tiny is what I’m after, but it loads only a list of thumbnails, doesn’t even look like the one you have displayed) noobslide, galleria… and none of them loads fine. Is it some javascript problem? Maybe the plugin can’t access the js files or something?
I’m sorry for replying for the third time (you can delete my other posts) but now I’ve discovered that it is theme related. I’ve changed to the default one and it loads fine.
Do you have any recomendations on how should I include the galleries into my theme?
Thanks
I fixed it. All I needed to do is add before to enable the hooks for the javascript files. Sorry for the fourth posting, but this is the solution to my problems.
So if your gallery doesn’t display as it should in your theme, this is the solution folks. Now back to work
Sorry for double posting, but I forgot to write the error message: Fatal error: Call to a member function admin_init() on a non-object in /home/mozte175/public_html/clientes/tiosam/wp-content/plugins/shiba-media-library/shiba-media-library.php on line 182
Hi, I’m facing the same error message as Blondie1122 when trying to upload a picture in NextGEN Gallery.
I believe that the NextGEN gallery has its own image album (i.e. gallery) handling functions, so I would just use that.
I’m having the same problem. The theme I am using uses Shiba, but I want to use NextGen for my photo galleries. There appears to be a conflict
I applied a small fix to the shiba-media-library.php file by changing around line #183 from: $this->helper->admin_init(); and changed it to:
$vyep = $_SERVER["SCRIPT_NAME"];;
if ($vyep =="/wp-admin/post.php" OR $vyep =="/wp-admin/post-new.php" ){
$this->helper->admin_init();
}
hi! I really like the plugin, but I have one question. If I have re-ordered images within the gallery (and the gallery is based on a tag), the gallery displays perfectly with the [gallery] shortcode.
However, when I drill in to view an image, the next/previous links are totally wrong. They seem almost random, or they have some relationship to when the images were uploaded. I am using the previous_image_link() and next_image_link() in my single image php page. What am I doing wrong? Help! Thanks!
Are you including the image into multiple different galleries?
In native WordPress, there is a one-to-one relationship between an image and its parent. This means that when using native WordPress commands, e.g. previous_image_link() and next_image_link(), only the last image position will be saved. I describe it in greater detail here-
http://shibashake.com/wordpress-theme/shiba-media-library-3-3
I purchased a theme for wordpress for a Realtor. The plug-in that feeds the newest homes for sale is having this issue with the media library.
Fatal error: Call to a member function init_admin() on a non-object in /home/content/18/6640618/html/wp-content/themes/Hermes/plugins/shiba-media-library/shiba-media-library.php on line 163
ANy idea how to fix. No one seems to have an answer and I can’t rebuild the whole site. Thanks!
Hmmm, the only thing that jumps up at me is that the plugins directory seem to be underneath the themes directory, which may cause some problems. However, it is difficult to say without doing onsite testing.
Where’s the address for this in the WordPress.org repository? Thanks!
Currently, this plugin is not on WordPress.org.
Just so you’d know – When listing the images currently attached to a certain gallery you check for the existence of “edit-attachment-rows.php”, and if it exists you assume the site is running WP 3.1 or bellow.
On some occasions (Normally due to an inexperienced develpoer) the site might become a mush of several WP editions and so you might end up running a version that’s higher than 3.1 but still have that file.
Perhaps you might find a more reliable way to determine what version the site is using?
Great plugin. I love it
Quick question, I installed your Media Library version 3.3 it on WordPress 3.2.1 and the gallery description and images are gone.
See screenshot.
http://farm7.static.flickr.com/6197/6112982234_39b1b06e35_z.jpg
May be I missed some simple steps. Could you advice please.
Thanks for reporting this Pete.
It should be fixed now. Try downloading the zip again and reinstalling. Let me know if you run into more problems.
Thank you. It’s working now
I am currently using your gallery and media plugin. I have seen watermark plugins that will auto watermark images. Do you have any suggestions of one that will work with your plugins and the stock madia library.
I currently don’t use watermarks and have not looked at watermark plugins.
If you find one that works well but there are issues with the gallery or media plugin, let me know and I will look into it.
hi there!
i’ve been using your plugin for long, but now I found a problem after upgrading wp to 3.2. Thing is that images ordering doesn’t work properly. I set numbers for each particular photo in a gallery and the gallery ‘remembers’ only some of the numbers, changing all the rest to 0, and the clear sorting button doesn’t work, and it’s all messy really because you can’t order images as you want, i.e. menu order. Why?
Hello Kat,
menu_order is a WordPress core feature. Currently, it is not supported in the plugin, but I am working on adding it to Gallery objects. It will be included in the next update.
However, menu_order is stored in WP core as a one to one relationship – i.e., each image can only have one menu order number. If an image is included in multiple galleries using tags, then menu_order will not work properly because it will only remember the last order number.
I will include a different way to store image order so that it allows a many to one relationship but since it is not a WP standard, it will only work with the Shiba Gallery plugin and other front-end plugins that specifically support the feature. I will write more about this when I release the plugin update.
I was looking for a WP media library management plugin, and from my search results your plugin looked like it would be very useful, but upon coming to this site and unexpectedly seeing all the pictures of half-n—- made-up women, I don’t think I will be using your plugin.
You may not care, but I wanted to let you know that your site design is off-putting to some people in case you may not have realized that.
That is just fine. Hope you find what you are looking for.
Hi,
2 weeks ago i had problems with my wordpress theme i buyed, contacted the designers and they found out that the problem was this plugin.
My problem was that i can’t put images anymore in a billboard on the homepage because of the INSERT INTO POST button was disabled or gone. Disabled the plugin an now everything works again.. maybe you can do something with it.
Grtz, mia
Should be fixed in the new zip. Let me know if it is not.
Looks like a great plugin but I have two questions:
1. Is there a way to setup pagination with the gallery?
2. By default it seems all my photos in the gallery are linking to their attachment page as opposed to the full sized image directly. I can’t seem to find anyway around this. This is a fresh install on a new theme with no other plugins activated.
Thanks
Hello Adam,
Both questions would depend on what gallery front-end you are using.
If you are using the standard WP gallery shortcode, then you can set the link page using the link tag.
http://codex.wordpress.org/Gallery_Shortcode
As for paging, the Shiba Gallery plugin does support a page tag in the gallery shortcode. However, this is a plugin by plugin specific thing and not a standard.
Hi,
I need this function: when user edit article, he can use media library to insert image, but only the image he upload it (he can’t use image that upload by other user)
how could I implement it ?
thanks.
Just a heads up that your plugin breaks the ‘Insert into Post’ button for the Media library pop-up when using TinyMCE and the Media Bar outside of the Post Editor (/wp-admin/media-upload.php?post_id=0&TB_iframe=1&width=640&height=390).