我爱水煮鱼 » WordPress » Advanced Post Image Plugin

Advanced Post Image Plugin

文章目录[隐藏]

English

Advanced Post Images plugin can generate thumbnails of the first image of latest (number is set by user) posts and link back to the them.

Installation and Usage

  1. Upload the advanced-post-image.php to to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php get_post_image_list(); ?> in your templates
  4. create the folder thumb under the directory wp-content/uploads/, and set it to 777

If you want to control the number, the thumb image’s width and height, you can use the following four parameters in the function <?php get_post_image_list(); ?>

$image_number = 10 // the image number, default is 10
$thumb_width = 50 // the thumb image's width, default is 50px
$thumb_height = 50 // the thumb image's height, default is 50px
$type = "recent" // the list's type,  "recent" displays latest posts's image while "random" display random posts's image

You can use the ul.post-image-list CSS selector to stlye the images list.

Download: Advanced Post Image Plugin

Demo:
post-image-list

You can donate via payapl to support the plugin’s development, :-)


中文

这是该插件的初始版本,Advanced Post Image 插件会生成最新日志(数字由用户设定)的第一张图片的缩略图,然后产生一个链回原来日志的列表。
安装和使用

  1. 上传 advanced-post-image.php 到 /wp-content/plugins/ 目录下
  2. 在插件菜单下激活插件
  3. 在模板文件中适当的位置插入 <?php get_post_image_list(); ?> 模板函数
  4. 在 wp-content/uploads/ 目录下创建 thumb 文件夹并将其设置为 777

你可以使用函数 <?php get_post_image_list(); ?> 的以下四个参数:

$image_number = 10 // 设置显示图片个数,默认为10 张
$thumb_width = 50 // 设置所略图的宽度,默认为 50 像素,如果为 0,则会根据高度自动修改,但是宽度和高度至少填一个
$thumb_height = 50 // 设置所略图的高度,默认为 50 像素,如果为 0,则会根据宽度自动修改,但是宽度和高度至少填一个
$type = "recent" // 设置列表的类型,"recent" 显示最近日志的图片, "random" 则显示随机日志的图片

你可以根据 ul.post-image-list 这个 CSS selector 去样式化图片列表

下载:Advanced Post Image Plugin

演示:
post-image-list

标签:

分享到:

48 条评论 添加你的评论 →

  • Gomus 2008-03-01 03:57:56 #

    New version, wohoo! Best plugin ever.

    支持 反对

  • Joshua 2008-03-16 23:52:17 #

    Thanks so much for this, it is awesome.

    支持 反对

  • zzz 2008-03-30 23:38:53 #

    I insist this one is much better than ur plugin.

    http://www.alakhnor.com/post-thumb/

    支持 反对

  • Mar 2008-04-20 02:17:41 #

    I love this plugin but I’d like to show post title above or below thumbnails. Is it possible?

    支持 反对

  • Maxx 2008-04-29 11:52:29 #

    best plugin ever!
    thanks for developing this.

    支持 反对

  • Matthias 2008-05-07 16:29:35 #

    Thank you, nice plugin.

    But I got a short question: is it possible that i just get posts from a specific category and not just the latest posts?

    that would be perfect! :)

    greets

    支持 反对

  • Matthias 2008-05-07 19:25:32 #

    Thats nice, thank you very much :)

    支持 反对

  • baron 2008-05-08 00:34:10 #

    hi there .thanks for plugin:

    Does anybody know if tis script is compatible with WordPress 2.5.1 ?

    Thanks in advance for any help on this!

    best regards

    支持 反对

  • coldbo 2008-05-09 04:30:16 #

    为什么调用很慢,我就生成一个缩略图,每翻一次页,就得等半天,老慢老慢.是个好插件,请教怎么才能……….

    支持 反对

  • florry 2008-07-06 21:37:25 #

    Hello,

    In the thumbnail plugin the location of the image gets set to a folder. I pull in my images from flickr and other places how can I change the path to a URL.

    Thanks,

    F

    支持 反对

  • idea-cool 2008-07-13 15:21:14 #

    怎么设置图片压缩质量,默认的质量比较低

    支持 反对

  • 孤星飞 2009-05-16 19:12:59 #

    请问横向排序显示,又该如何做?

    支持 反对

  • burhanuddin 2009-05-22 16:36:36 #

    same as Matthias.

    my question is it possible that i just get posts from a specific category and not just the latest posts?

    支持 反对

  • 维秋 2009-09-21 15:03:03 #

    我有一个请求,希望可以同时调用日志的标题,还有指定调用的分类,如果还可的话,再加一个可以指定单篇日志就更好了,呵呵,谢谢。希望得到回复。中秋快乐。

    支持 反对

发表评论

你必须 登陆 之后才能留言。你可以使用以下方式快速登陆我爱水煮鱼:

使用新浪微博登陆 使用腾讯微博登陆 使用豆瓣登陆

你也可选择直接在本站 注册