前言介紹
- 這款 WordPress 外掛「Taxonomy Images II」是 2009-01-11 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 300 個安裝啟用數。
- 上一次更新是 2011-08-20,距離現在已有 5304 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
tag | image | category | taxonomy | custom taxonomy |
內容簡介
這個 WordPress 外掛可讓您上傳類別和自訂分類法的圖像,並提供一個範本標籤在主題中顯示該圖像。要啟用自訂分類法的圖像,請前往「設定 > Category Images II」。要上傳類別或自訂分類法中的標籤圖像,請前往該類別或標籤的編輯螢幕。
標籤:ciii_category_images()和ciii_term_images()
在迴圈內使用上述範本標籤將會顯示該文章類別的所有類別圖像縮圖。如果某些類別沒有圖像,則不會顯示圖像(即沒有預設圖像)。您需要自己設定 HTML 輸出樣式。
提供類別 ID,任何位置都可使用上述範本標籤,將會顯示所有指定的類別的縮圖。如果某些類別沒有圖像,則不會顯示圖像(即此處也沒有預設圖像)。
(注意,如果您在迴圈之外使用此標籤,它會變得混亂。如果您想在類別存檔頁面中添加單一圖像,請使用下面的iii_category_archive_image()標籤。)
在迴圈內使用上述範本標籤將會顯示與該文章關聯的指定分類法(在此範例中為「post_tag」)的所有標籤圖像縮圖。如果某些標籤沒有圖像,則不會顯示圖像(即沒有預設圖像)。您需要自己設定 HTML 輸出樣式。
提供標籤 ID,任何位置都可使用上述範本標籤,將會顯示所有指定的標籤的縮圖。如果某些標籤沒有圖像,則不會顯示圖像(即此處也沒有預設圖像)。您需要自己設定 HTML 輸出樣式。您可以傳遞show_description參數以不顯示標籤或類別說明,size參數以指定「原始」或「縮圖」。
標籤:ciii_category_archive_image()
此標籤設計用於類別存檔頁面,內部或外部迴圈均可使用。它會顯示該類別的圖像。您可以在「設定 > Category Images II」中指定類別圖像縮圖的最大邊長。您可以從「管理 > 分類」中為每個類別上傳和刪除圖像,點擊要編輯的每個類別即可看到上傳和刪除控制元件(只有在分類已經上傳圖像後才會顯示刪除控制元件)。
HTML 輸出非常良好,但如果您需要調整它,可以創建一個名為「view」的主題目錄,以及其內部名為「category-images-ii」的目錄。然後從外掛目錄中複製範本檔案view/category-images-ii/term-images.php到您的主題目錄中,並進行修改。如果這些檔案在主題目錄的這些目錄中存在,它們將覆蓋外掛目錄中的檔案。這很好,因為這意味著當您更新外掛時,您只需覆蓋舊的外掛目錄,因為您沒有更改任何檔案。感謝 John Godley 提供此幻想程式碼。這個外掛是代表 Puffbox 製作的。
原文外掛簡介
This plugin allows you to upload images for categories and custom taxonomies, and provides a template tag to show the image(s) in your theme.
To activate the images for a custom taxonomy, go to Settings > Category Images II.
To upload an image for a category, or a term in a custom taxonomy, go to the edit screen for that category or term.
Tag: ciii_category_images() && ciii_term_images()
Used within the loop, the above template tag will show the thumbnails for all the category images for the category of that post. If some categories have no image, no image is shown for that category (i.e. there is no default image). You will need to style the HTML output yourself.
Used anywhere and provided with category IDs, the above template tag will show the thumbnails for all the categories specified. If some categories have no image, no image is shown for that category (i.e. there is no default image here either).
(Note that this tag will get confused if you use it outside the loop. If you want to add a single image to your category archive pages, please use ciii_category_archive_image() below.)
Used within the loop, the above template tag will show the thumbnails for all the term images for the specified taxonomy (in this case ‘post_tag’) which are associated with that post. If some terms have no image, no image is shown for that term (i.e. there is no default image). You will need to style the HTML output yourself.
Used anywhere and provided with term IDs, the above template tag will show the thumbnails for all the terms specified. If some terms have no image, no image is shown for that term (i.e. there is no default image here either). You will need to style the HTML output yourself.
You can pass the show_description parameter to not show the term or category description, and the size parameter to specify either ‘original’ or ‘thumbnail’.
Tag: ciii_category_archive_image()
This tag is designed to be used on the category archive page, either inside or outside the loop. It will show the image for the category in question.You can specify the maximum side of the category image thumbnail in “Settings > Category Images II”. You can upload, and delete, images for each category from “Manage > Categories”, click into each category you wish to edit and you’ll see the uploading and deletion controls (deletion controls only show up if the category already has an image uploaded).
The HTML output is fairly well classed, but if you need to adapt it you can. Create a directory in your theme called “view”, and a directory within that one called “category-images-ii”. Then copy the template files view/category-images-ii/term-images.php from the plugin directory into your theme directory and amend as you need. If these files exist in these directories in your theme they will override the ones in the plugin directory. This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven’t changed any files in it. All hail John Godley for the code which allows this magic to happen.
Plugin initially produced on behalf of Puffbox.
Is this plugin lacking a feature you want? I’m happy to accept offers of feature sponsorship: contact me and we can discuss your ideas.
Any issues: contact me.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Taxonomy Images II」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.2 | 1.3 | 1.00 | 1.11 | 1.12 | 1.21 | 1.33 | 1.34 | 0.20b | 0.21b | 0.30b | trunk |
延伸相關外掛(你可能也想知道)
Custom Post Type UI 》Custom Post Type UI 提供了易於使用的界面,以便為您的網站註冊和管理自定義文章類型和分類法。, Custom Post Type UI Extended, CPTUI 協助建立自定義內容...。
Tag, Category, and Taxonomy Manager – AI Autotagger with OpenAI 》axoPress allows you to show a customizable display of the terms assigned to the current post. You can choose which taxonomy and which format to dis...。
Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
Radio Buttons for Taxonomies 》此外掛可將預設的分類方塊替換為使用單選按鈕的自訂 metabox…從而限制每篇文章在該分類中只能選擇一個術語。, 插件選項頁面允許使用者選擇要切換為使用...。Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。
Term Management Tools 》請注意,此外掛需要至少 PHP 7.1。, 如果您需要重新組織標籤和分類,此外掛可以讓您更輕鬆地進行操作。它在條目管理頁面的“批次操作”下拉菜單中添加了三個新...。
Taxonomy Images 》在你的主題中顯示圖像, 有一些過濾器可以在你的主題中使用,來顯示此外掛創建的圖像關聯。請閱讀以下詳細信息。, 顯示代表術語檔案庫的單個圖像, 以下過濾器...。Related Posts by Taxonomy 》此外掛可以讓你快速增加讀者的參與度,透過小工具或簡碼在側邊欄或文章內容後加入相關文章。有相同詞彙數量的文章會顯示在最前面!此外掛可以在多個種類和文...。
PS Taxonomy Expander 》PS Taxonomy Expander 可以讓您更輕鬆地在編輯文章時使用類別、標籤和自訂分類法。, 功能, , 啟用將分類法核取方塊變成有階層的單選按鈕功能。, 讓您在 WordP...。
Posts in Page 》使用簡單的簡碼 (shortcodes),輕鬆地將一個或多個文章添加到任何頁面。, 支援類別 (categories)、標籤 (tags)、自訂文章類型 (custom post types)、自訂稅項...。Custom Post Type Widgets 》此 WordPress 外掛可以添加預設的自訂文章類型小工具。, 您可以在小工具上篩選已註冊的自訂文章類型或分類法。, , 小工具描述, , 最新文章 (自訂文章類型), ...。
WP Term Order 》按照您的方式對分類法詞進行排序。, WP Term Order 允許使用者以數字方式對任何可見的類別、標籤或分類法詞進行排序,為其分類法提供定制排序。, 同時也請查...。HTML Import 2 》此外掛可匯入格式完整的靜態 HTML 檔案到 WordPress。需要 PHP 5 及以上版本。, 此插件可將一個目錄的檔案匯入為頁面或文章。您可以指定包含您想匯入內容的 H...。
Taxonomy Metadata 》此外掛實現了分類術語的元數據基礎設施,因此您可以向標籤、類別和其他分類術語中添加自定義元數據(按鍵)。大部分代碼來自於sirzooro提交到 WordPress Core...。
Remove Taxonomy Base Slug 》如果您想要對您的自訂文章類型文章使用更好的固定連結,並使用自訂的固定連結,這個外掛程序可以協助您。, 如果該術語的slug和文章類型相同,那麼該分類的優...。
