
內容簡介
Category and Taxonomy Image Plugin 允許您添加類別/分類法的圖片。
您可以在模板中使用下列函數以獲得類別/分類法圖片:
if (function_exists('get_wp_term_image'))
{
$meta_image = get_wp_term_image($term_id);
//它會給出類別/分類法圖片的url
}
echo $meta_image; //類別/分類法圖片的url
$term_id 為 ‘類別/分類法 id’
功能
設定,啟用哪個分類法的圖片欄位。
非常簡單易用。
易於自定義。
外掛標籤
開發者團隊
原文外掛簡介
Category and Taxonomy Image Plugin allow you to add image with category/taxonomy.
you can use the following function into your templates to get category/term image:
if (function_exists('get_wp_term_image'))
{
$meta_image = get_wp_term_image($term_id);
//It will give category/term image url
}
echo $meta_image; // category/term image url
where $term_id is ‘category/term id’
Features
Setting ,for which taxonomy ,image field is to be enable.
Very simple in use
Can be customized easily.
