
內容簡介
「Better Categories Images」外掛允許您在任何類別或分類法中添加圖片。
使用方法:
+ $thumbnail_id = get_term_meta( $term_id, 'thumbnail_id', true ); \\ [get_term_meta](https://developer.wordpress.org/reference/functions/get_term_meta/)
+ $image = wp_get_attachment_image( $thumbnail_id, 'full' ); \\ [wp_get_attachment_image](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/)
從 WordPress 內部
造訪「外掛 > 新增」頁面
搜尋「Better Categories Images」
從您的外掛頁面啟用「Better Categories Images」
手動設置
上傳「better-categories-images」資料夾到「/wp-content/plugins/」目錄中
透過 WordPress 中的「外掛」選單啟用「Better Categories Images」外掛
參考「啟用之後」下方的說明
外掛標籤
開發者團隊
原文外掛簡介
The Better Categories Images Plugin allow you to add image with any category or taxonomy.
Use:
+ $thumbnail_id = get_term_meta( $term_id, 'thumbnail_id', true ); \\ [get_term_meta](https://developer.wordpress.org/reference/functions/get_term_meta/)
+ $image = wp_get_attachment_image( $thumbnail_id, 'full' ); \\ [wp_get_attachment_image](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/)
From within WordPress
Visit ‘Plugins > Add New’
Search for ‘Better Categories Images’
Activate Better Categories Images from your Plugins page.
Manually
Upload the better-categories-images folder to the /wp-content/plugins/ directory
Activate the Better Categories Images plugin through the ‘Plugins’ menu in WordPress
Go to “after activation” below.
