[WordPress] 外掛分享: Image Browser

首頁外掛目錄 › Image Browser
10+
安裝啟用
★★☆☆☆
2/5 分(1 則評價)
5093 天前
最後更新
問題解決
WordPress 2.8+ v0.3 上架:2010-08-03

內容簡介

可以讓您按照日期和/或類別瀏覽博客中的所有圖像,並且可以搜索圖像標題中的關鍵詞。

選項

圖像瀏覽器插件有3個地方可以指定選項。

管理員菜單
短碼
URL查詢參數

這些按升序列出,即URL查詢參數優先於短碼參數,短碼參數優先於在管理設置頁面中指定的默認選項。

默認選項如下

$defaults = array(
'limit' => 30,
'cols' => 3,
'size' => 'thumbnail',
'year' => 0,
'month' => 0,
'category' => 0,
'keywords' => '',
'sortby' => 'post_date',
'sortorder' => 'DESC',
'page' => 1
);

limit-一次顯示的圖像數量

cols-圖像瀏覽器的列數

大小-顯示的圖片大小。可用選項:

縮略圖(預設)
中型
大型
全尺寸

年份-從這一年中檢索圖像

0表示所有年份(預設)
當前顯示當前年份

月份-從這個月中檢索圖像

0表示所有月份(預設)
current顯示當前月份

類別-檢索其post_parent屬於這個類別的圖像

0表示所有類別(預設)

關鍵詞-在圖像標題中搜索這些關鍵詞

0表示所有類別(預設)

sortby-按字段排序。可用選項:

post_date(圖像日期)(預設)
post_title(圖像標題)
post_excerpt(圖像標題)

sortorder-排序順序。可用選項:

ASC-升序
DESC-降序
RANDOM-隨機順序

page-要顯示的頁面

示例

以下是一個示例短碼,可顯示屬於類別10的2009年的所有圖像
[imagebrowser year=2009 category=10]

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Image Browser」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

adminstration menu
shortcode
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]

延伸相關外掛

文章
Filter
Mastodon