跳到内容

Image Browser

v0.3

robfelty · 2010年8月4日 上架

Allows you to browse all images on your blog by date and/or category, with the ability to also search image captions for keywords.

正在使用
10+
评分
暂无
累计下载
5,120
最近更新
2012年4月3日
需要 WordPress 2.8+已测试到 3.3.2

贡献者

截图

browsing images
browsing images
Options
Options

Allows you to browse all images on your blog by date and/or category, with the
ability to also search image captions for keywords.

Options

The image browser plugin has 3 places where you can specify options.

  1. adminstration menu
  2. shortcode
  3. url query parameters

These are listed in ascending order of precedence, that is, url query
parameters override any shortcode parameters, which override default options
specified in the administration settings page.

Default options are listed below

    $defaults = array(
      'limit' => 30,
      'cols' => 3,
      'size' => 'thumbnail',
      'year' => 0,
      'month' => 0,
      'category' => 0,
      'keywords' => '',
      'sortby' => 'post_date',
      'sortorder' => 'DESC',
      'page' => 1
    );
  • limit – how many images to display at one time

  • cols – the number of columns for the image browser

  • size – size of picture to display. Available options:

    • thumbnail (default)
    • medium
    • large
    • full
  • year – retrieve images from this year

    • 0 means all years (default)
    • current displays the current year
  • month – retrieve images from this month

    • 0 means all months (default)
    • current displays the current month
  • category – retrieve images whose post_parent belongs to this category

    • 0 means all categories (default)
  • keywords – Search image captions for these keywords

    • 0 means all categories (default)
  • sortby – Field to sort by. Available options:

    • post_date (The image date) (default)
    • post_title (The image title)
    • post_excerpt (The image caption)
  • sortorder – Order to sort by. Available options:

    • ASC – ascending order
    • DESC – descending order
    • RANDOM – random order
  • page – which page to show

Example

Here is an example shortcode to display all images from 2009 that belong to
posts with category 10
[imagebrowser year=2009 category=10]

Plums

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

导航

说明

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

© 2026 Plums