內容簡介
使用「Taxonomy Thumbnail and widget plugin」,使用者可以為內建或自訂分類法的項目設定縮圖選項,並透過小工具(Taxonomy Term List)在側邊欄中存取,也可以透過短碼在頁面/文章中使用。
使用 <?php if (function_exists('ttw_thumbnail_url')) echo ttw_thumbnail_url(); ?> 可以取得 URL,並將其放入任何 img 標記,或在(分類或分類法)模板中使用 <?php if (function_exists('ttw_thumbnail_image')) echo ttw_thumbnail_image(); ?>。
以上函數的引數為:
1. ttw_thumbnail_url($termid , $size);
2. ttw_thumbnail_image($termid , $size);
外掛優點
易於配置。
無法阻擋。
外掛支援 Chrome、Firefox、Safari 和 IE。
與 WooCommerce 兼容。
短碼。
外掛配置
拖放小工具「Taxonomy Term List」。
短碼:
[TTW_TERMS taxonomy=’category’ class=’taxonomy-term-list’]
顯示當前文章或產品的分類法
[TTW_POST_TERMS_ICON taxonomy="product_tag" class="" hide_empty="" post_id=""]
注意:
post_id 不是必需的。
taxonom 是必需的。
外掛標籤
開發者團隊
② 後台搜尋「Taxonomy Thumbnail and Widget」→ 直接安裝(推薦)
原文外掛簡介
Using Taxonomy Thumbnail and widget plugin users can make thumbnail options for inbuilt and custom taxonomy terms and access via widget (Taxonomy Term List) in the sidebar and also use in page/post using the shortcode.
Use to get the url and put it in any img tag or simply use in (category or taxonomy) template.
Arguments in above functions :
1. ttw_thumbnail_url($termid , $size);
2. ttw_thumbnail_image($termid , $size);
Plugin advantage
Easy to configuration.
Unblockable.
Plugin supports Chrome, Firefox, Safari and IE
Woocommerce Compatible
Shortcode
Plugin configuration
Drag and drop the widget (Taxonomy Term List)
Shortcodes :
[TTW_TERMS taxonomy=’category’ class=’taxonomy-term-list’]
For Show current post/product taxonomies
[TTW_POST_TERMS_ICON taxonomy="product_tag" class="" hide_empty="" post_id=""]
Note :
post_id is not required
taxonomy is required
