Linux 软件免费装

Automatic Post Thumb

开发者 Devolux
更新时间 2009年5月5日 03:41
捐献地址: 去捐款
PHP版本: 2.0.2 及以上
WordPress版本: 2.7

标签

images thumbnail

下载

详情介绍:

The plugin extracts the first image uploaded to a wordpress post by using a simple database query. You are not obliged to insert it into your post, but of course you can do so. Please note that the database order of the images is not influenced by the way you order your images in a post. The first image uploaded will remain the thumbnail, even if you place at the end of your article. If you delete the first image, the second one will take its position. If no image at all is added to a post, the plugin delivers a default image (a white wordpress logo with light gray background). The title of the thumbnail is generated out of the post title. You can insert the image anywhere in your theme inside the wp-loop by adding a template tag to the source code. Please be aware that the plugin does not resize or crop the images. It simply delivers the html tag. The styling is intended to be solved via CSS (s. "Installation"). Please report bugs at the plugin's homepage.

安装:

  1. Upload "post_thumb" to the "/wp-content/plugins/" directory
  2. Activate the plugin through the "Plugins" menu in WordPress
  3. Place "<?php post_thumb(); ?>" inside the wp-loop of your template, where ever you want the thumbnail to appear.
  4. A nice way to use this plugin is to link the images to the post by wrapping the plugin template tag into the post URL: <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php post_thumb(); ?></a>
  5. Adjust display and image size using CSS. The plugin renounces on resizing the thumbnail because this can be done easily inside your style.css. You can used it at any place of your theme by giving it a "max-width" value. The height will automatically be adjusted and, in the case that the image is more narrow than the "max-width", it will keep its original dimensions.