Display newest, oldest or random images uploaded to your site.
Sometimes you need a proper image gallery to display particular images, and there
are plenty of plugins for that. Easy Image Display is for those other
times, when all you need is an easy way to display some random images, or X latest/oldest
images uploaded to your site.
Current features include:
Features soon to be added:
If you’d like to support the ongoing development of this plugin, please take a look at my Patreon page.
Usage
Easy Image Display provides 3 ways of displaying images; widget, shortcode and template tag. Each method accepts the same options and will result in the same display.
Widget
The Easy Image Display widget is the easiest way to display your images. The basic settings allow you to control image size, order and number. More advanced settings are collapsed by default to provide a simple uncluttered interface.
Choose your options, hit save, and rejoice.
Shortcode
To display images inside a post or page rather than a widget area, you need a shortcode.
Default settings:
[sb_easy_image]
Custom settings:
[sb_easy_image num="1" order="random" link="lightbox"]
Template tag
The template tag is available for users who are confident in adding code to theme files, and need to display images outside of the widget areas or main content area. The following function can be added anywhere in your theme files.
Default settings:
<?php sb_easy_image(); ?>
Custom settings:
<?php $args = array( "num" => "1", "order" => "random", "link" => "lightbox", ); sb_easy_image( $args ); ?>
For full list of parameters see the plugin release page
Some themes handle gallery styling differently in different areas of the page.
If your theme does not support multiple column galleries in a widget area you
may need to add some custom CSS.
Every theme is different, but if you’re unfamiliar with CSS and need some help
please post in the plugin support forum with a link to your site.
This border is part of the default gallery CSS generated by WordPress. To override this you can add the following CSS to your
theme, usually in style.css :
.gallery img { border: 0 !important; }
This margin is part of the default gallery CSS generated by WordPress. To override this you can add the following CSS to your
theme, usually in style.css :
.gallery-item { margin-top: 0px !important; }
This option will only take effect when filter is set to “only”, as that is the only time when every image ID is specified
and can therefore be ordered correctly.