12

Image list from custom fields plugin

The “Image List From Custom Fields” plugin displays a list of images from a recent number of posts and links back to them. This plugin is similar to other image list plugins with one main difference, instead of causing increased server load by searching for and pulling an image from the post it pulls the image from the custom fields specified by the author when he/she writes the post. By doing this a much clearer image can be displayed rather than showing a stretched or skewed image from the post.

Click the screenshot below for an example of the plugin in action……

Installation Instructions:

  1. Download the plugin here or from the Wordpress Plugins directory.
  2. Unzip and upload the plugin to the plugins directory of your Wordpress blog.
  3. Insert this code into the header page

<?php if (function_exists('get_custom_image_list')) { get_custom_image_list(); } ?>

Specifying the image:

When you author your post you will need to specify the image in the custom fields section.  Don’t worry this is incredibly fast and all aspects of it can be done in under minutes.  To do this simply -

  1. Create the 50×50 image with your favorite graphic editing program (such as Gimp).  Should take less than 60 seconds  since you’ve already made other images for the post.
  2. Upload the image the same way you do the others through the Wordpress “Write Post Page”.  15-60 Seconds depending on your ISP.
  3. Once the image is uploaded, copy and paste its link location (one way is to right click image, select properties, select the link location by dragging across it, right click it and select copy). 15 Seconds, tops.
  4. Scroll down to the Custom Fields section, if its your first time doing this you will need to create a new key.  In the text box under key type the word Thumbnail.  Next to it in the value field paste the link location of the image.  After doing this once, the key Thumbnail will appear in the drop-down box that says select.  You can select it there from now on.  Will take less than 15 seconds.
  5. Click Update.

wordpress-custom-fields

That’s it!  Once you publish the post you’ll have an crisp clear image specified as a thumbnail that the plugin will display when called on.

Customization:

To customize the plugin, open the plugin in the plugin editor (click plugins in your Wordpress admin, click the edit link next to the plugin).

Scroll down to this code:

function get_custom_image_list($images = 9,$thumb_width = 50,$thumb_height = 50) {

  • To change the number of images, look for $image=9, change the 9 to any number of images you want.
  • To change the width and height, change the 50 next to what which one you want to change.

Further customization is available by scrolling further down to

function image_list_css() {

With some css knowledge you can tweak the settings here to your liking.

This is my first plugin, if you have any questions,bugs or just like to say thanks leave a comment below.  Thanks and I hope you all enjoy the plugin.

12 Responses to “Image list from custom fields plugin”

  1. Digital Don Says:

    Cool looking plug-in, will definitely make my blurry image list come to life! As soon as I get it installed I’ll leave a link! Should only take me about 15 minutes to actually add Thumbnails to the last 9 posts……

    Thanks!

  2. WordPress Plugin Releases for 12/08  | Wordpress Blog NL Says:

    [...] Image List From Custom Fields [...]

  3. WeblogToolsCollection Español » Archivo del Blog » Novedades Plugins de WordPress 08/12 Says:

    [...] Image List From Custom Fields [...]

  4. Fernanda Gomez Says:

    Great Plugin, will try it on my site. Thanks!

  5. WordPress Plugin Releases for 12/08 | Web Design Abyss Says:

    [...] Image List From Custom Fields [...]

  6. WordPress Plugin Releases for 12/08 | HLBV Says:

    [...] Image List From Custom Fields [...]

  7. Skuzzed.com » WordPress Plugin Releases for 12/08 Says:

    [...] Image List From Custom Fields [...]

  8. Weblog Tools Collection: WordPress Plugin Releases for 12/08 | GoThinking.net Says:

    [...] Image List From Custom Fields [...]

  9. Toure Says:

    Hello.
    Is there any way to have multiple images as value for a same key, and without specifying the images’ properties (width, height)?
    I wan to be able to insert multiple images when in single page trough custom field instead of doing it directly withing the post.
    Also be able to insert only one image when not in single page (category post listing).
    Thanks for any guiding.

  10. diederik meijer Says:

    Hi,
    Is there any way to edit the php code, so that the list picks images that have been uploaded using a Flutter custom field named “plaatje” and starts with the previous post?
    Right now I am manually uploading an image that links to the previous post every day… Your plugin should be able to do that automatically..
    Thank you,
    diederik

  11. jlegosama Says:

    Is there any way to only display images from posts with a certain category? Or any kind of exclude feature?

  12. Sarah Says:

    Is it possible to use this plugin on a page?

Leave a Reply