跳到内容

Tui’s Find Thumb

v1.02

stephenbaugh · 2009年1月11日 上架

This plugin has been written to provide various ways to return an image thumb either as a URL or IMG tag. There are four functions.

正在使用
10 以下
评分
暂无
累计下载
6,069
最近更新
2009年1月11日
需要 WordPress 2.0.2+已测试到 2.7

贡献者

截图

Sample of a theme using a thumbnail image.
Sample of a theme using a thumbnail image.
Download then activate the plugin.
Download then activate the plugin.
Goto plugin settings page.
Goto plugin settings page.
Set up the base directory for your images.
Set up the base directory for your images.
Set up the default css class to use and thumbnail name.
Set up the default css class to use and thumbnail name.
How should your thumbnails be scaled and what size by default.
How should your thumbnails be scaled and what size by default.
If you need more help look at the top right hand corner of the options page.
If you need more help look at the top right hand corner of the options page.
Now it's time to edit your theme. Look for where thumbnails are used and remove code like this that was in my theme.
Now it's time to edit your theme. Look for where thumbnails are used and remove code like this that was in my theme.

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

  1. Returns an IMG tag based on the thumbnail set in the post meta data (through special post fields)
  2. The first image in the post
  3. A randomly chosen image from a directory (in your base images directory) with the same name as the posts first category slug.
  4. A randomly chosen image from your base images directory

Functions available

There are 5 funtions that can be accessed through this plugin.

1. tui_findRandomBackgroundSTYLE()

Returns a random image URL from the background images folder if one exists else the base image folder.

2, tui_findRandomThumbURL()

Returns a random image URL from base image folder

3. tui_findRandomThumbIMG(“Height”,”Width”,”Class”,”Title”,”Alt”)

Returns a random image IMG Tage from base image folder

4. tui_findPostThumbURL(“thepostID”)

Returns a URL, having searched based on the postID

5. tui_findPostThumbIMG(“thepostID”,”Height”,”Width”,”Class”,”Title”,”Alt”)

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums