[WordPress] 外掛分享: WP Multiple Taxonomy Images

首頁外掛目錄 › WP Multiple Taxonomy Images
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
200+
安裝啟用
★★★★★
5/5 分(2 則評價)
3503 天前
最後更新
0%
問題解決
WordPress 4.0.1+ v0.3 上架:2016-08-08

內容簡介

WP Multiple Taxonomy Images 外掛允許您在一個分類學術名詞中添加多個圖像。
它支援分類、標籤和自訂分類學術名詞。每個學術名詞可以有不同數量的圖像。

適用於自訂分類、標籤和自訂分類學術名詞。
每個學術名詞可以有多個圖像。
每個學術名詞的圖像數量可以單獨更改。
在學術名詞列表中有縮略圖預覽。
在編輯學術名詞時可以更改圖像。
透過簡單的設定頁面可以排除某些分類學術標籤。

使用方法

使用 <?php if (function_exists('get_tax_image_urls')) $img_urls = get_tax_image_urls($term_id ,'full'); ?> 取得所有圖像的 URL 陣列。
使用 <?php if (function_exists('get_tax_images')) $img_html = get_tax_images($term_id ,'full'); ?> 取得所有圖像的 HTML img-tag。
使用 <?php if (function_exists('get_tax_image_metadata')) $img_html = get_tax_image_metadata($term_id); ?> 取得每個圖像的 metadata 陣列。
每個陣列元素都是一個物件,對應每個單獨圖像由 wp_get_attachment_metadata() 傳回的回傳值。

如果您不知道在所使用的分類學術標籤範本中當前學術名詞的 $term_id,可以透過以下命令查詢:
$tax_obj = get_queried_object();
$term_id = $tax_obj->term_id;

外掛標籤

開發者團隊

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

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

原文外掛簡介

The WP Multiple Taxonomy Images Plugin allows you to add multiple images to a term.
It supports category, tags and custom taxonomies. Terms can have a different number
of images.

Works with custom categories, tags, and custom taxonomies.
Multiple images per term.
Number of images can be changed individually for each term.
Thumbnails overview in the term list.
Images can be changed when editing terms.
A simple settings page allows you to exclude certain taxonomies.

Usage

Use to get an array of all image URLs.
Use to get all images as HTML img-tags.
Use to get an array of every image metadata.
Each array entry has an object, which corresponds to the return value of wp_get_attachment_metadata() for each single image.

If you do not know the $term_id of the current term in your category/taxonomy template, then you
can query it with the following command:
$tax_obj = get_queried_object();
$term_id = $tax_obj->term_id;

延伸相關外掛

文章
Filter
Mastodon