Many WordPress themes, are heavily dependant on “feature images” to use as thumbnails to make them look good. This is great except it adds a lot of extra work setting up these thumb references, but equally if you are in a hurry and forget you add the thumb then the look of the theme breaks.
So here is Tui’s Find Thumb plugin. It is very easy to use. It’s purpose is to replace the Image function currently used in your theme with one that is lot more clever. With these new functions available you can do everything from a randomly select an image, or return a URL or IMG tag source specifically for that post.
The post option works through this logic until it gets a result
- Returns an IMG tag based on the thumbnail set in the post meta data (through special post fields)
- The first image in the post
- A randomly chosen image from a directory (in your base images directory) with the same name as the posts first category slug.
- A randomly chosen image from your base images directory
There are 5 funtions that can be accessed through this plugin.
Returns a random image URL from the background images folder if one exists else the base image folder.
Returns a random image URL from base image folder
Returns a random image IMG Tage from base image folder
Returns a URL, having searched based on the postID
Returns an IMG tag, containing the URL, height, width, alt, title and class, having searched based on the postID<h3>Support</h3>
Support can be found on plugin homepage: http://www.stephenbaugh.com/blog/wordpress-plugins/find-thumb/
You can also view project here: http://code.google.com/p/tui-find-thumb/
Additional documentation: http://code.google.com/p/tui-find-thumb/w/list
Issues & requests: http://code.google.com/p/tui-find-thumb/issues/list
Development version: http://code.google.com/p/tui-find-thumb/source/
Change logs: http://code.google.com/p/tui-find-thumb/wiki/Changelogs
This section describes how to install the plugin and get it working.
- Vistit plugin home page to get full install instructions including image references.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Edit your plugin settings
- Set up your image folders
- Edit pages in your templates