The main addition to this update is the ability to order images within gallery objects.
Shiba Media Library was tested on WordPress 3.2.
Order Images Within Gallery Objects
We may now easily reorder images within a Gallery object. Simply drag the image that you want to reorder and drop it at its new position.
Once you are done, don’t forget to click on the Save or Update button to save your changes.
One Image Position for Each Image
The new image positions are saved using the menu_order native WordPress attribute. WordPress only allows one menu_order value per image object.
As a result, if we attach an image to multiple galleries using tags, only the last or most recent image position will be saved.
For example, I have included Artist-Picture7 into the two galleries above.
- In Test Gallery-1, I positioned the image at the top of the gallery.
- In Test Gallery-2, I positioned the image at the bottom of the gallery.
In the resulting galleries, Artist-Picture7 appears at its last saved position – which is at the bottom.
Multiple Image Positions
Because of the limitations described above, we also added a new way to save multiple image positions. However, since this new feature is not a WordPress standard, it will only work with front-end gallery plugins that specifically support it.
For example, the Shiba Gallery Plugin supports this multiple position feature. Instead of using orderby=menu_order in my gallery shortcode, I use orderby=shiba_menu_order.
Now, Artist-Picture7 appears at the top of Test Gallery-1 which is where it should be.
Change Default Gallery Object Shortcode
We may now change the gallery shortcode used when viewing a Gallery object. Simply go into Galleries >> Options to change the default shortcode and set whether descriptions should appear on your Gallery page.