[WordPress] 外掛分享: TCL Categories Image

首頁外掛目錄 › TCL Categories Image
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
2981 天前
最後更新
問題解決
WordPress 4.4+ PHP 5.2.4+ v1.0.1 上架:2017-12-11

內容簡介

TCL 類別圖片外掛程式允許使用者將圖片新增到類別或自訂分類法。您可以輕易地為每個類別/分類法或標籤分配圖片,然後透過以下函數在類別/分類法/檔案庫樣板中顯示圖片。

使用方式:

<?php if (function_exists('tclTaxonomyImage')) tclTaxonomyImage(); ?> 顯示圖片
<?php if (function_exists('tclTaxonomyThumbUrl')) echo tclTaxonomyThumbUrl(); ?> 取得 URL

在此,您可以指定圖片大小作為第二個參數

<?php if (function_exists('tclTaxonomyImage')) tclTaxonomyImage(NULL,'thumbnail'); ?> 顯示圖片
<?php if (function_exists('tclTaxonomyThumbUrl')) echo tclTaxonomyThumbUrl(NULL,'thumbnail'); ?> 取得 URL

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「TCL Categories Image」→ 直接安裝(推薦)

原文外掛簡介

TCL Categories Images Plugin allow users to add an image to category or custom taxonomies.You can easily assign an image to each category/taxonomy or tag and then display image for category/taxonomy/archive template via following functions.
Usage:
to display image
to get URL

Here, You can specify image size as a second parameter
to display image
to get URL

文章
Filter
Mastodon