Descriere
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:
- Show or hide image captions
- Newest, oldest, random and custom sorting options
- Include/exclude images based on ID
- Widget, shortcode and template tag for maximum flexibility
- Display images at various sizes
- Control how many images are displayed and in how many columns
- Link images to a lightbox, static URL, or remove link entirely
- Uses gallery shortcode so will always fit your theme
Features soon to be added:
- Filter images by attachment status
- Slideshow layout
- Custom image sizes
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
Instalare
- Upload the ‘easy-image-display’ folder to the ‘/wp-content/plugins/’ directory
- Activează modulul prin meniul ‘Module’ din WordPress
- Add images using the widget, shortcode or template tag
- Enjoy!
Întrebări frecvente
- Installation Instructions
-
- Upload the ‘easy-image-display’ folder to the ‘/wp-content/plugins/’ directory
- Activează modulul prin meniul ‘Module’ din WordPress
- Add images using the widget, shortcode or template tag
- Enjoy!
- The widget always displays images in one column?
-
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. - How can I get rid of grey borders around my images?
-
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; }
- How can I get rid of the whitespace above my images?
-
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; }
- How does the custom sorting option work?
-
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.
Recenzii
Contributori și dezvoltatori
„Easy Image Display” este un software open-source. La acest modul au contribuit următoarele persoane.
ContributoriTradu „Easy Image Display” în limba ta.
Te interesează dezvoltarea?
Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.
Istoric modificări
1.2.5
- Fixed problem with static URL link option being ignored
1.2.4
- Compatibility with WP 4.3
1.2.3
- Fixed problem with caption links + lightbox
1.2.2
- Added option to show/hide captions
1.2.1
- Fixed incompatibility with other plugins affecting the [gallery] shortcode
1.2.0
- Added option to specify range of image IDs
- Added custom sorting option
- Various performance fixes
1.1.1
- Fixed compatibility with PHP 5.4
- Added option to link images to static URL
- Small performance fix
1.1.0
- Fixed version numbering
1.0.2
- Added option to include/exclude images based on ID
- Fixed issue with widget form not expanding correctly
1.0.1
- Fixed an incompatibility with other lightbox plugins
1.0
- First version