前言介紹
- 這款 WordPress 外掛「Advanced Category and Custom Taxonomy Image」是 2019-03-11 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2025-04-19,距離現在已有 15 天。
- 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
- 有 4 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!
外掛協作開發者
sajjad67 |
外掛標籤
term image | category-logo | category image | featured image | taxonomy image |
內容簡介
這個外掛讓您更容易為不同平台包括類別 / 自訂分類法圖像,無需使用高像素圖像大小來超載移動帶寬。 現在您可以為不同的裝置選擇不同的圖像。
文檔
$taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , array $class = array() );
如果 $return_html = true,則獲取分類法圖像URL,然後返回標籤
參數:
$term_id
(int) (必填)該學期所屬的分類法ID。
$return_img_tag
(boolean) (可選)用於在輸出期間將格式化的圖像與標籤匹配。
$class
(array) (可選)圖像類別的陣列,例如:array('class1','class2',...),但返回圖像標籤為true時應該添加圖像類別。
echo $taxonomy_img; // 分類法圖像URL
其中 $term_id 是 ‘類別 / 學期 ID’
功能
啟用不同分類法的自定義圖像上傳選項
啟用不同設備的自定義圖像上傳選項
非常容易使用和 WP 預設媒體上傳以上傳圖像
內置模板標籤,可在您的主題模板中使用
有興趣為拖放菜單項目做出貢獻嗎?
請通過 sagorh672(at)gmail(dot)com 聯繫我
原文外掛簡介
Now its easier to include category / custom taxonomy image with this plugin for different platforms. No need to overload mobile bandwidth with high pixel image size. You can now select different image for different devices. Upload Different Image For Different Devices ex: Mobile, Tablet, Desktop, iOS, Android, Windows Phone.
Built-in Template Tag To Use Anywhere You Want In Your Theme : get_taxonomy_image( $term_id, $return_img_tag, $class );
Documentation
$taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , array $class = array() );
get taxonomy image url if $return_html = true then return tag
Parameters :
$term_id
(int) (Required) Taxonomy ID of the term.
$return_img_tag
(boolean) (Optional) Formatted Image with tag for the field during output.
$class
(array|string) (Optional) An array or space separated string of CSS classes to add to the tag. classes ex: array( 'class1', 'class2', ... ) but $return_img_tag should be true to add image class.
echo $taxonomy_img; // taxonomy image url
where $term_id is ‘category / term id’
Shortcode : use the shortcode anywhere to get taxonomy image. If you don’t provide “term_id” value then it will be current queried page taxonomy automatically.
echo do_shortcode( '[ad_tax_image term_id="" return_img_tag="true" class="your custom class list seperated by space"]' ); // keep term_id empty if you want to show current visited taxonomy archive image.
Features
Option To Enable Custom Image Upload for different taxonomies
Option To Enable Custom Image Upload for different devices
Very simple to use & WP Default Media Uploaded to upload image
Built-in Template Tag to use in your theme template
Shortcode to use anywhere.
Interested in contributing to Advanced Category and Custom Taxonomy Image?
Contact me at sagorh672(at)gmail(dot)com
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Advanced Category and Custom Taxonomy Image」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | trunk |
延伸相關外掛(你可能也想知道)
Categories Images 》Categories Images 外掛能夠讓你將圖片與分類或分類法(taxonomy)相關聯。, 使用
Category and Taxonomy Image 》, Category and Taxonomy Image Plugin 允許您添加類別/分類法的圖片。, 您可以在模板中使用下列函數以獲得類別/分類法圖片:, , , if (function_exists('get...。
Category and Taxonomy Meta Fields 》這是一個 WordPress 外掛,可以在內建或自定義分類法中添加自訂元素欄位。只需透過 WP-admin -> 設定 -> 分類法元素,即可添加所需的欄位。, 您可以在...。
Custom Category Image 》你是否正在尋找將圖像上傳到類別中的方法?是的,Custom Category Image 外掛可以完美解決這個問題。, 只需安裝並啟用,在類別中即可新增圖像欄位。, 在前端...。
RDV Category Image 》RDV Category Image 外掛能夠讓你為分類、標籤或任何自訂分類設定一張圖片。請審視下面的程式碼片段,在分類頁模板或任何頁面或文章上顯示類別圖片。, , , 使...。
Easy Taxonomy Images 》Easy Taxonomy Images 是一個非常輕巧的外掛程式,可以讓您為類別標籤和自訂分類標籤設置特色圖片或封面圖片, 功能, , 非常輕量級, 支援所有類別標籤和自訂分...。
TCL Categories Image 》TCL 類別圖片外掛程式允許使用者將圖片新增到類別或自訂分類法。您可以輕易地為每個類別/分類法或標籤分配圖片,然後透過以下函數在類別/分類法/檔案庫樣板中...。
Category Image Manager by DevDesignDazzle 》總結:DevDesignDazzle 的「Category Image Manager」為您的 WordPress 網站增添了豐富的功能,輕鬆地將圖像添加到分類中,讓您的頁面、存檔和菜單更加華麗。...。