
內容簡介
Easy Taxonomy Images 是一個非常輕巧的外掛程式,可以讓您為類別標籤和自訂分類標籤設置特色圖片或封面圖片
功能
非常輕量級
支援所有類別標籤和自訂分類標籤的封面圖片和特色圖片
易於使用的設置
如何使用-後端
安裝並啟用該外掛程式
前往管理儀表板> Easy Taxonomy Images
禁用您不需要特色圖片或封面圖片的分類標籤(可以為每個分類標籤保留封面和特色,其中任何一個或沒有封面和特色圖片的選項)
設置預設的特色圖片和封面圖片
現在轉到您選擇的任何分類標籤編輯/添加頁面,您可以將特色和/或封面圖片添加為已啟用
如何使用-前端
Easy Taxonomy Image 為您提供兩個函數:
taxonomy_featured_image:將其放置在任何類別模板上,它將顯示當前類別的特色圖片
taxonomy_cover_image:將其放置在任何類別模板上,它將顯示當前類別的封面圖片
要擷取特定術語的特色或封面圖片,只需將term_id作為函數的第一個參數傳遞,例如:
taxonomy_featured_image(34):顯示id為34的術語的特色圖片
外掛標籤
開發者團隊
原文外掛簡介
Easy Taxonomy Images is very light plugin which allows you to have featured and or cover images for category tags and custom taxonomies
Features
Extremely lightweight
Support cover images & feature images for all category tags & custom taxonomies
easy to use settings
How to use - Backend
Install and activate the plugin
Navigate to Dashboard > Easy Taxonomy Images
Disable Taxonomies for which you do not need featured and or cover Image (there is option to keep both cover & feature or any of these or none of these for each taxonomy )
Set default feature Image & Cover Image
Now go to any of your chosen taxonomy edit/add page, there you can add feature and or cover image as enabled
How to use - Frontend
Easy Taxonomy Image provides you with two functions :
taxonomy_featured_image place it on any of the category templates it will display the feature image of the current category
taxonomy_cover_image place it on any of the category templates it will display the cover image of the current category
To fetch featured or cover image of any particular term just pass term_id as first argument in the function, like so :
taxonomy_featured_image(34); - display featured image term with id = 34
