WordPress Gallery Plugin

The Shiba Gallery Plugin allows you to display a variety of javascript galleries within your WordPress blog. All you need to do is specify the type of gallery you want in your regular WordPress gallery shortcode.

The Shiba Gallery is very flexible and can render post, page, and gallery objects, in addition to image attachments. This article describes some of the cool things that you can achieve with the Shiba Gallery.

[gallery id="10" type="tiny2" size="large" frame="white" tsize="none" autoplay="1"]

[Shiba Gallery Change-Log]

May 3rd, 2014 – Shiba Gallery 4.4

  • Updated plugin paths.
  • Added clen as a gallery shortcode attribute for controlling caption length on a gallery by gallery basis.
  • Fixed a bunch of gallery CSS styles.
  • Remove device check for slimbox javascript.
  • Noobslide now using mootools 1.4.5.
  • Updated for WordPress 3.9.
  • Tested on Chrome, Safari, IE 11.

This is a very big update, so definitely test first before deploying.

More sample galleries.

Javascript Galleries Supported

Currently, the Shiba WordPress Gallery Plugin includes the following gorgeous Javascript libraries -

TinySlideshow by Michael Leigeber.

Tiny Slideshow is a very slick looking inline gallery that allows users to scroll through the images, or enjoy them in an automatic slideshow mode.

[gallery id=10 type="tiny" caption="title" size="(600, 400)" crop="1" responsive="aspect"]

NoobSlide from EfectoRelativo.net

There is one word to describe the NoobSlide Gallery – Awesome!

If I had two words, I would say Simply Awesome!

With NoobSlide you can easily combine together various gallery type components to create a range of compelling gallery styles.

For example, to the right I have created a NoobSlide version of Galleria. At the bottom I have created a NoobSlide version of SlideViewer.

[gallery id=10 type="noobslide_galleria"]
[gallery id=10 type="noobslide_slideviewer" responsive="aspect"]

Lightbox by Lokesh Dhakar.

Original lightbox gallery. It uses jquery and sizes properly based on browser window.

[gallery id=8162 type=lightbox size="thumbnail" caption="none"]

Slimbox by Christophe Beyls.

Slimbox is an efficient version of Lightbox that is solely based on jQuery. Slimbox will now be used in place of Lytebox.

[gallery id=8162 type=slimbox size="thumbnail" caption="none"]

Lytebox by Markus F. Hay.

Lytebox is not as efficient as Slimbox but it will resize images that are larger than the browser screen.

[gallery id=8162 type=lytebox size="(120,120)" caption="none"]

Popeye 2.0 Gallery by Christoph Schüßler.

Popeye is an awesome inline gallery that allows you to expand images in-place. It also has some very well styled frames which we have also included in the Shiba Gallery Plugin.

[gallery id=10 type=popeye]

Galleria by Aino.

Galleria is a very professional looking image gallery. It is also fast, simple, and easy to use. The classic version shown here is very similar to Tiny Slideshow in terms of functionality. However, there are a variety of other themes that can be bought at the Galleria site that offers many alternative functions and views.

[gallery id=10 type="galleria"]

Navigation List by ShibaShake

A simple list of posts or pages including their thumbnails, associated links, and a short summary. A good way to create a navigation page or navigation widget.

[gallery type="navlist" recent="1" numberposts="5" caption="description" ]

WordPress Native Gallery

The WordPress native gallery is also supported. Just specify the type as native.

[gallery id=10 type=native size="thumbnail" responsive="aspect"]

Expanded WordPress Native Gallery

The previous expanded WordPress Native Gallery has been replaced with the NoobSlide NativeX gallery. It contains thumbnails just as before, but also has a nice preview image and description panel. This gallery is most useful when displaying post, page, or gallery objects.

Just specify the type as noobslide_nativex.

[gallery id=1688 type="noobslide_nativex" size="medium"]

Custom Image Size

You can specify the image size that you want using the standard WordPress gallery shortcode tags – full, large, medium, thumbnail. These sizes are set under Settings >> Media.

Alternatively, you can also specify your own custom size.

[gallery id="1969" type="galleria" size="(300,225)"]

Shiba Gallery Plugin Expanded Short-Codes

  • category – List of comma separated category ids to include in the gallery.
  • [gallery category="109" type="nativex"]
    
  • tag – List of comma separated tag slugs to include in the gallery.
  • [gallery tag="tag-a,tag-b,tag-c"]
    
  • tag_and – Same as above except this allows you to perform an AND operation instead of an OR. It will only return images that contain ALL of the tags in your list.
  • [gallery tag_and="tag-a,tag-b,tag-c"]
    
  • recent – List of recent articles.
  • [gallery recent="1"]
    
  • numberposts – Number of objects to include in the gallery.
  • [gallery category="10" numberposts="15"]
    
  • page – Which page of gallery objects to show. It is used in conjunction with numberposts to enable gallery paging.
  • [gallery category="10" numberposts="5" page="2"]
    
  • post_type – The type of objects to include (post, page, gallery, attachment, or any).
  • [gallery category="109" type="nativex" numberposts="15" post_type="post"]
    
  • responsive – Specifies whether gallery should be client responsive [none, aspect, width]. Width adjusts the width of the gallery while keeping height constant. Aspect adjusts both width and height of gallery to maintain its aspect ratio. More on client responsive options.
  • [gallery category="109" responsive="aspect" type="tiny"]
    
  • tsize – Specify thumbnail size. Set tsize=”none” for no thumbnails.
  • [gallery category="109" tsize="(54,54)" type="tiny"]
    
  • frame – The type of frame to use for the gallery. Current frames include none, green, blue, gray, shadow, black, white, and border. Here are some example galleries with the different frames.
  • [gallery category="10" frame="green"]
    
  • link – What to use as the gallery caption and image links. Current link options include none, attachment, file, slimbox or lytebox.
  • [gallery category="10" link="none"]
    
  • caption – What to use as the image captions. Current caption options include none, title, description, or permanent. More detail on the different gallery caption options.
  • [gallery category="10" caption="description"]
    
  • cpos – Positions the gallery caption to the [bottom, top, left, right].
  • [gallery category="109" cpos="bottom"]
    
  • clen – Specifies maximum caption length for the gallery.
  • [gallery category="109" clen="500"]
    
  • crop – Crops images in gallery.
  • [gallery category="109" crop="1"]
    
  • active – Specifies whether images in the gallery are active, i.e. whether the images act as links.
  • [gallery category="109" active="1"]
    
  • autoplay – Automatically scroll through the gallery. Any manual user action will stop autoplay.
  • [gallery category="109" autoplay="1"]
    

Note -
Only one of include, category, tag, recent, or id will be used. Include will be checked first, followed by category, followed by tag, and then recent. If none of these are set, id will be used.

Shiba Gallery Default Options

You can specify a default gallery type by going to Media >> Shiba Gallery.

From this screen you may also set the default thumbnail picture, default frame, and default captions. There is also a check box in the Default Frame section that specifies whether this default frame should also be applied to images in your blog.

The default gallery image will be used for posts and galleries that have no thumbnails assigned to them. If you do not have a default image, the plugin will just display an empty black image.

Show Shiba Galleries in Your Widget Areas

To show shiba galleries in your widget areas, simply enable gallery shortcodes for text widgets.

// Add to the init function of your functions.php file
add_filter('widget_text', 'do_shortcode');

Call Shiba Gallery Directly from PHP

If we want to call Shiba Gallery directly from PHP rather than use the WordPress gallery shortcode, we may do the following -

global $shiba_gallery;
echo $shiba_gallery->parse_gallery_shortcode("", array('id' => "10"));

Shiba Gallery Plugin Updates

Shiba Gallery 4.3.3

Sept 23rd, 2013

  • Added lightbox 2 gallery by Lokesh Dhakar.
  • Fixed sizing bug that occurs when server responsive option is turned off. Thanks to Susan for reporting this.
  • Assign better option default values based on gallery type.

Shiba Gallery 4.3

Sept 18th, 2013

  • Shiba Gallery is now both client and server responsive. Server responsiveness allows the server to send the right sized images based on device width. Client responsiveness allows image size to change based on browser width.
    [More on mobile responsive galleries and images]
  • Gallery images and links can now be tied to slimbox or lytebox.
  • Added new gallery shortcode attributes – crop, active, and cpos.
  • Create a slimbox gallery based on captioned images within a post.
  • Updated Shiba Gallery settings page.
  • Updated for WordPress 3.6.
  • Cleaned up styles and fixed a bunch of bugs.

Shiba Gallery 4.0

Jan 12th, 2013

  • Galleries and captioned images are now mobile responsive! The plugin uses device width to determine gallery and image sizes.

    To turn on the mobile responsive feature, go to Media >> Shiba Gallery, scroll down to the bottom, and click on the “Enable responsive galleries and images” checkbox.

    [More on mobile responsive galleries and images and what is used in this plugin]

  • Updated for WordPress 3.5.
  • Updated Tinyslideshow to version 2. The old version is still available by using type=”tiny1″
  • Fixed noobslide fast clicks causing thumbnails and images to get out of sync.
  • Collect galleria styles into the main css file.
  • Options page is now encapsulated in a class wrapper and also uses the 3.5 new media manager.
  • Removed Pslides. There are customization limitations, and the plugin already contains several thumbnail galleries including tiny1, tiny2, galleria, and noobslide.
  • A whole bunch of other fixes.

Shiba Gallery 3.7.2

Aug 7th, 2012

  • Updated for WordPress 3.4. Fixed default image pop-up menu.
  • Updated Shiba Gallery options page with more standardized permissions check.

Shiba Gallery 3.7

May 7th, 2012

  • Control thumbnail size. Specify thumbnail size using the tsize parameter. Works with Tiny Slideshow, Picture Slides, and Noobslide.
  • Galleria. A new version of Galleria has been added back to the plugin.
  • Navigation List. Useful for displaying a set of related posts or pages together with thumbnails, links, and article summaries.
  • Default value filter. Hook into the shiba_gallery_defaults filter to alter gallery default values.
  • IE8 and IE7 compability. Fixed several IE8 and IE7 compatibility issues. All galleries should now work on these browsers.

Shiba Gallery 3.5

February 15th, 2011

  • Gallery links. You now have the option to set your gallery links to file, attachment, or none.
  • Expanded WordPress captions. The standard WordPress caption shortcode has been expanded to deal with images and galleries.
  • Lytebox. The Lytebox gallery has been added back to the plugin because it resizes large images according to the browser screen whereas Slimbox does not.
  • Apostrophe in Titles. Galleries should function properly even if images have the apostrophe symbol in their titles.

Shiba Gallery 3.3

December 2nd, 2010
This is a big release with many new features.

  • Gallery frames. You may now assign a variety of styled frames to your WordPress galleries and images.
  • Gallery captions. You may now turn gallery captions on and off, as well as show image titles and descriptions.
  • Gallery paging. The page attribute is now supported in the gallery shortcode. You may easily enable gallery paging by setting numberposts and page in your gallery shortcode.
  • Gallery default options. There is now a gallery options page under Media >> Shiba Gallery. This screen allows you to set default frames, gallery types, captions, and thumbnail.
  • New galleries. Some exciting new galleries have been added including Popeye 2.0, Picture Slides, and Slimbox.
  • Gallery javascripts are now loaded at the end of the page and only as needed. If no galleries are used, then no gallery javascripts will be loaded. This will help improve page efficiency.

Shiba Gallery Plugin 3.1

April 6th, 2010

  • Plugin has been modularized and all functions are encapsulated within wrapper classes.
  • I have also integrated Shiba Gallery with the awesome YARPP plugin for showing related articles. By simply using the related tag in your gallery shortcode you may view YARPP results using any of the javascript galleries within the Shiba plugin.

Shiba Gallery Plugin 3.0

  • The Shiba Gallery Plugin has been significantly enhanced in this release with the inclusion of NoobSlide; one of the most versatile, compelling, and well-constructed Javascript galleries I have come across.
  • With NoobSlide, I was able to construct galleries that are similar in style to the previous Galleria, SlideViewer, and NativeX gallery types. Execution of galleries are now a lot faster, smoother, efficient, and clean.
  • I have replaced -
  • There is no longer any need for iframes, or background-image resizing operations. This makes the plugin faster, cleaner, and more secure.

Shiba Gallery 2.7.3

February 15th, 2010

  • There is a Fatal error bug in the Shiba Gallery 2.7 release. This is due to a missing function in the plugin. I have fixed it in the latest patch 2.7.3. Please download this important patch.
  • Many thanks to Jacob for detecting and reporting it so quickly.

Shiba Gallery Plugin 2.7

  • You can now render post, page, and gallery objects using any of the gallery types. Some new gallery short-code options have been added to facilitate this new capability.
  • We also expanded the WordPress native gallery and added it as a new gallery type (type=”nativex”).

Shiba Gallery Plugin 2.5

Shiba Gallery Plugin 2.0

  • Galleria now works on Google Chrome. It is Schweet!

Shiba Gallery Plugin 1.0

  • Detailed description of the Shiba Gallery Plugin with examples.

Future Additions

If you are particularly impressed with a Javascript gallery, please let me know and I will look into including it within the Shiba Gallery Plugin.

Please let me know if you encounter any bugs or compatibility issues. This will help me to improve the plugin and update the compatibility list above.

Thanks to all the Javascript library authors for sharing their very awesome gallery scripts with us!

Related Articles

Comments

  1. says

    Hello,

    I have been using your plugin for around four years. It allows me some unigue ways to display galleries. Recently, I installed another plugin which uses the same shortcode {gallery ] and the plugin conflicts. Is there an easy way I can to adjust your short code on my site within your plugin ? thanks so much

  2. says

    I seem to have a problem with the ‘Gallery Default Settings.’ When I set the Gallery type to “Slimbox’ it does not work. I assume I need to set the ‘link’ settings to ‘Slimbox. However when I manually set the gallery type=”slimbox”, it works. What am I doing wrong in the settings page. When I set it to ‘Galleria’, it works.

    Thanks

    Genesis 2.01
    WordPress 3.81

  3. says

    Awesome plugin!
    I’m trying to place the thumbnails (tiny2 version) ABOVE the slider, rather then under it. I’ve played around with shiba-tiny2.php but couldn’t get it right. Any quick workaround? It’d be HUGE help, thanks!

  4. ain says

    can help me how to set noobslide_nativex image size to 375,250? because when i set [gallery type="noobslide_nativex" size="(375,250)" ids="284,285,286,287,288"] , it display small image size, its not follow my setting.

    • ShibaShake says

      Does using size=”large” or size=”medium” work? What is the maximum size of the images? Is there an example page?

  5. Andras says

    Found the problem in the meantime by looking through the code: I am using a custom theme where there is no function. That is why Shiba Gallery couldn’t add the required JS files. Added the function and it now works fine.
    Thx anyway :)

  6. Andras says

    Hi,

    somehow I can not get your plugin to work. It gives me Uncaught ReferenceError: tiny2 is not defined error messages. To be honest it is not just the tiny, but the others as well. After checking my code and this website’s code I realised that somehow the plugin is not running the init function. The gallery.js is included (tiny in this case) but the actualy init is not done. I would appreciate any help. Thank you

  7. says

    Hello. Thank you for the great plugin! One question, I am trying to use the native wordpress gallery to layout a page of albums that link to separate galleries. For some reason, I cannot get them to align properly. I am hoping for either 3 or 4 columns of thumbnails, any suggestions? The page in question is: http://modernlywed.com/galleriestest

    Thank you!

    • ShibaShake says

      There is an added margin defined in the stylesheet of your theme that is causing too much space to be allocated to each image, which is why the third image is pushed down. Try adding something like-

      <style>
      dl { margin: 0; }  
      </style>
      
      • says

        Thank you for your reply! I added that code, but now the thumbnail images just appear off-center from the text. In the “browse by detail” section I have it calling out 3 columns, in the “browse by color” section I have 4 columns. It creates images with different margins/padding, but both bump images to a second row. Any other thoughts?

        • ShibaShake says

          It looks like there is an error in the style code that you added in. The </style> should be moved up so that it does not encapsulate the other style block. Alternatively, you can add the style block within your post (under HTML edit).

          You can also specify multiple cascading classes to make sure that the margin overrides what is defined by your theme, for example-

          <style>
          .shiba-gallery dl { margin: 10px 0 0 0; }  
          </style>
          

          Or add in the !important tag.

          If you are using Chrome, it is relatively easy to debug style issues and conflicts by right clicking on the image and selecting “Inspect Element”.

  8. Saikee says

    ShibaShake, thanks for your contribution.

    Is it possible to display slide show from all the images in the Media LIbrary ?
    And also for newly uploaded images ?

    B.Rgds

  9. Joe says

    “Only one of include, category, tag, recent, or id will be used. Include will be checked first, followed by category, followed by tag, and then recent.”

    What does the “include” parameter do, and what are valid arguments please?

  10. Joe says

    Hi there. Thank you for your excellent gallery plugin. It is the best I’ve seen, and I’ve tried them all. (did you intentionally leave it out of the WP database?).
    Anyway, I just have one suggestion to make it better. I am building a very image rich website, and I extensively use tags to classify the images. I would be great if the tag parameter in the shortcode was enhanced to use logic operators. For example, there’s currently no way to define a galllery that combines tags like this: “furniture” AND (“table” OR “chair”), NOT “desk”.
    Would that be difficult to implement?

    Cheers.

    • says

      Something like that is probably best done through the posts_where filter. What you want is to flexibly craft your own database query, and hooking into posts_where will allow you to do that.

      posts_where is a wordpress native filter.

      • Joe says

        OK it looks like that requires PHP coding which I’m reluctant to do. I think I’ll just manually create a gallery. Thanks.

        • says

          It is my belief that mmohtoelisea is actually the most fatal cancer. It’s got unusual properties. The more I actually look at it the more I am convinced it does not act like a true solid tissue cancer. In the event that mmohtoelisea is actually a rogue virus-like infection, in that case there is the potential for developing a vaccine plus offering vaccination for asbestos exposed people who are vulnerable to high risk of developing potential asbestos connected malignancies. Thanks for sharing your ideas on this important health issue.

  11. April says

    Hi There
    Would it be difficult to use the noobslide gallerria and/or slideviewer so that the thumbnails are horizontal to left with more than one row. Would I be able to dig into the CSS of the plugin somewhere to do this. The set up is almost exactly what I need after looking through hundreds of free and premium plugins.
    Best,
    April

    • says

      The CSS is all in the css/shiba-gallery.css file [ css/shiba-gallery.dev.css is the uncompressed version ]. Search for noobmain, which is the start of all the noobslide styles.

      Personally, I wouldn’t change the main CSS file. Better to just override the styles from a child theme.

  12. says

    Reposted 18 March 2013, originally posted on ‘updates to…’ page in error, my apologies.

    Gallery in question appears at top of one-page site http://frugalmule.com/ which is actually (via domain mapping system) this page: http://www.tedpenner.com/frugalmule/

    Hi. I use your media library and gallery plugins on many websites. On frugalmule.com I’m having an odd issue. This shortcode is used to create a gallery in a pseudo-header area at the top of the page content:

    [gallery tag="frugalmule-header" type="tiny2" size="large" frame="none" tsize="none" autoplay="1"]

    The following css overrides are added for the page:
    .sliderbutton {display:none;}
    .tiny2 .pagination {display:none}
    .entry-content{padding:0;}
    .shiba-caption.cbottom {display:none;}

    The slide images are all exactly 600px by 170px. All but one have a picture at one edge and black fill to make them the right width. The exception has a picture at center with black fill to left and right to make it the right width.

    For some reason, the tiny 2 slideshow is offsetting some of the images. The ‘centered’ one appears off to the right, and at least one of the others shows a black column in front of the picture. I’ve been inspecting the elements with firefox and chrome for hours and I can’t seem to find out what is causing the odd behavior. I’d really appreciate some help on it. Thanks in advance.

Trackbacks

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>