內容簡介
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
外掛標籤
開發者團隊
原文外掛簡介
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
