该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Chip Get Image

描述

Chip Get Image is a plugin that grabs images by using its unique Short Circuit Speedy Logic. It is very flexible and easy to use plugin for adding thumbnails, featured images or other images to the blog posts.

Short Circuit Speedy Logic is highly flexible that gives you power to grab an image by your choice from custom field input, WordPress post image feature, post attachment or from all as default behaviour.

Visit Chip Get Image for usage and more information.

安装

  1. Upload chip-get-image folder to your /wp-contents/plugins directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the appropriate code to your template files as outlined in the Plugin URI.

More detailed instructions are provided in the plugin’s URl. It is important to read online article properly to understand all of the options and how the plugin works.

常见问题

Why was this plugin created?

Many themes require a lot of work when inputting images to make them look good. This plugin was developed to make that process much easier for the end user. But, at the same time, it needed to be flexible enough to handle anything.

How does it pull images?
  1. Looks for an image by custom field.
  2. If image does not find, check for post image (WordPress 2.9+ feature).
  3. If no image is found again, it will find image attached to the post.
  4. If attempt is not successful, it will add default image to the post. (You must set default image) .
What is Short Circuit Speedy Logic?

You have noticed that plugin by default will make four steps attempt to find image, but you can make it speedy by changing the default behavior of Short Circuit Speedy Logic. It will increase the speed dramatically. For example, When you are very much sure that image will be found from attachment only, than you can tell the plugin to find it from attachment first and than for other options, OR attachment only.

How do I add it to my theme?

There are several methods, but in general, you would use this call:

<?php
if( function_exists( "chip_get_image" ) ):
$chip_image = chip_get_image();
?>
<a href="<?php echo $chip_image['posturl']; ?>" title="<?php echo $chip_image['alt']; ?>"><img src="<?php echo $chip_image['imageurl']; ?>" alt="<?php echo $chip_image['alt']; ?>" width="150" height="150" /></a>
<?php
endif;
?>

评价

此插件暂无评价。

贡献者及开发者

「Chip Get Image」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Chip Get Image」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.3

  • A PHP Error has been fixed. Error was observed in WordPress 3.1 release.

0.2

  • A PHP Notice has been fixed. Notice was observed when WordPress runs in WP_DEBUG true mode.

0.1

Plugin released. I have tested it in different dimensions at my personal blog.