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 images uploaded to your site.
Current features include:
Features soon to be added:
1. Upload the ‘easy-image-display’ directory to the ‘/wp-content/plugins/’ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Add images using one of the three methods explained below
4. Enjoy!
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.
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.
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"]
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 );
?>
If you’re using the widget, the options are all clearly marked. You can’t go far wrong.
If you’re using the shortcode or template tag, here’s what you need to know:
Parameter | Description | Options | Defaults ( widget, shortcode, template tag) |
---|---|---|---|
num | Number of images to display. | Any number. | 1, 9, 5 |
order | Order displayed images by... | Newest, Oldest, Random, Custom | Newest (all) |
size | Size of image to be loaded. The display size will depend on your theme and number of columns chosen. | Thumbnail, Medium, Large, Ful | Thumbnail (all) |
link | Target link when images clicked. | None, File, Attachment, Lightbox, URL | File (all) |
url | Static URL images should link to when "url" is chosen for link parameter. | Any URL | n/a |
columns | Number of gallery columns to display. | Any number | 1, 3, 5 |
filter | Include or exclude images from results, or show only specified images. | Include, Exclude, Only | Only (all) |
ids | Image IDs for use with the "filter" option. | ID numbers, separated with a comma. ID ranges also accepted (e.g. 12-17) | n/a |
captions | Show image captions? | On, Off | On (all) |