We'll create fresh WordPress site with Image Archives installed. You have 20 minutes to test the plugin after that site we'll be deleted.
(First of all, sorry for my bad English.)
Image Archives is a wordpress plugin that displays images from your published posts with a permalink back to the post that the image is connected to.
This plugin create a image list that is based on images you uploaded, not based on posts.
This plugin aims to show your recent posts with images for visitors on your site.
See how this plugin works on Sample Page(My site).
If you found any problems with this plugin, please tell me. “nomeu[-at-]nomeu.net”.
It is simple. Write a shortcode [image_archives] on the place where you want to show a list of your images linked to their host posts.
But at first, I recommend you to write a shortcode “[image_archives first_image_mode=on]” on a unpublished post.
This “first_image_mode” is a easy way(mode) to show a list. Without configuring a search strings, you can show a list which contains A image per A post.
(If you want to change the number of images per a post, set this attribute “off”.)
(And please note that the ‘first’ image means your ‘first’ uploaded image in a post. If you want to show a first image that is sorted by filename, use “image_order_by=title”. You can also use “image_order=DESC” at the same time. This means a latest image in a post is showed.)
Then you can see the output and how attributes works. After this, set some attributes for this plugin as you want.
Attributes are written like the following.
[image_archives term_id=? ordered_by=? order=? str=? limit=? size=? design=? item=? column=? date_format=? date_show=? cache=?]
Write only your necessary attributes. Default settings are below. Probably you should change “str” and “term_id” at least.
You can also use the php function of this plugin. In order to use the function, write “wp_image_archives();” within php code. As for the attributes, write like below.
wp_image_archives (‘term_id=9&order=DESC&design=1’);
You can also change design of the output with CSS. output HTML tags, table, div have a class=”img_arc”. div before a image have a class=”img_arc_img”, div before text have a class=”img_arc_text”.
table.img_arc {
border: 0 none;
}div.img_arc_img, div.img_arc_text {
text-align: center;
line-height: 1;
}div.img_arc_text a {
text-decoration: none;
}
When you use jQuery UI designs, please refer to Accordion, Tabs. jQuery automatically will add classes with outputted elements.
As for the color themes of Accordion(design=4) and Tabs(design=5), these themes are changeable. If you want to change themes, visit jQuery UI(http://jqueryui.com/themeroller) and download a theme file. Then, extract it, and overwrite the files of this plugin(/css/) with the downloaded files(/css/THEME_NAME/). In order to overwrite the files, you need to use FTP or else. The files is located under your wordpress folder(/wp-content/plugins/image-archives/css/).
I want to show a chosen image in a post!
In order to show specific images, I recommend you to name image files nicely.
For example, if you name images like “aaa-1.jpg“, “bbb-2.jpg“, “ccc-3-IWantToShowThis.jpg“, you can search your database for “ccc-3-IWantToShowThis.jpg” with “str=%IWantToShowThis“.
In other words, I recommend you add “-thumb” or something to the suffix of your specific image filename. Then search for it.
I want to show a monthly archive.
It is basically impossible with this plugin. But technically, it is possible. As I explained above, name the filenames nicely.
If you name images like “2012-01-abc.jpg“, “2012-01-vvv.jpg“, “2012-02-112.jpg“, you can search for posts in 2012/01 with “str=2012-01-%“.
I received many questions or requests about this. If you want a monthly archive, please use other plugins.
I want to search all categories or tags.
Use “term_id=ALL”.
I want a paging system on this plugin.
Sorry, a paging system is not supported by this plugin so far. But alternatively, you can use your wordpress function.
When you write a article, you can use “<!–nextpage–>” as WordPress quicktag. This is similar to “more” tag.
This is a WordPress function. Refer to this (https://codex.wordpress.org/Styling_Page-Links).
Exmple,
[image_archives first_image_mode=on ******* limit=0,30]
<!–nextpage–>
[image_archives first_image_mode=on ******* limit=30,30]
…..