Linux 软件免费装

Plugin Name

开发者
更新时间 2011年7月21日 22:49
PHP版本: 3.0 及以上
WordPress版本: 3.2.1

标签

image api cropper

下载

0.3.0

详情介绍:

For cropping a post thumbnail image to 200x300 pixels: This will verify the existence of post thumbnail, crop the image, save it in uploads folder, and generate an image tag. To verify the existence of a post thumbnail, you can use has_img() Some text To crop images that are not post thumbnails, you can use crop($url, $size) <img src="<?php echo $cropped_url ?>">

安装:

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Done :) Use the new template tags on your theme, eg <?php the_post(); img(200, 300); ?>

常见问题:

When using img(), where does the image come from?

The img() template tag gets the image from your post thumbnail.

更新日志:

0.3.0