[WordPress] 外掛分享: Taxonomy Images II

前言介紹

  • 這款 WordPress 外掛「Taxonomy Images II」是 2009-01-11 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2011-08-20,距離現在已有 5006 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

simonwheatley |

外掛標籤

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 |

延伸相關外掛(你可能也想知道)

  • PS Taxonomy Expander 》PS Taxonomy Expander 可以讓您更輕鬆地在編輯文章時使用類別、標籤和自訂分類法。, 功能, , 啟用將分類法核取方塊變成有階層的單選按鈕功能。, 讓您在 WordP...。
  • List Custom Taxonomy Widget 》清單自訂分類小工具是一種快速且簡單的方式,可以顯示自訂分類。只需從自動填充的清單中選擇要顯示的分類名稱即可。您還可以設置小工具要顯示的標題。可以將...。
  • Custom Post Type Generator 》透過 WordPress 管理介面輕鬆製作自訂文章類別及自訂分類法。, 對於任何使用 WordPress 的使用者來說都是必備的外掛程式。, 此外掛程式已發佈於 GitHub 上。。
  • Categories in Hierarchical Order 》Gutenberg 編輯器已經在選擇分類時維護了父子關係。因此,子類別不會出現在分類元框的頂部。因此,如果您正在使用 Gutenberg 編輯器,則不需要此外掛。, 「分...。
  • Remove Taxonomy Url 》永久連結(Permalinks),如其名,是指指向網站頁面、文章、分類或標籤的永久連結,讓訪客和搜尋引擎更容易地瀏覽您的網站。, 您有多少次因為 URL 看起來古怪...。
  • Easy Post Types and Fields 》m your custom post types., , , Include custom fields and taxonomies in the table., , , Customize the table columns to display only the information ...。
  • CBX Custom Taxonomy Filter 》WordPress 管理員工作區或儀表板的內建或自訂文章類型列表中,Custom Taxonomy Filter in WordPress Admin Panel Post Listing Plugin 將幫助您解決或添加自...。
  • Remove Taxonomy Slug 》這個外掛可以讓您擁有乾淨的 SEO 友善網址。您可以透過幾個點擊來移除分類法(taxonomy)別名並取得 SEO 友善的網址。, 此外掛可以透過進入外掛設定來移除自...。
  • LH User Taxonomies 》此外掛擴充了預設分類機能,將其擴展至使用者,同時自動化所有樣板代碼。, 啟用後,可使用以下程式碼註冊使用者分類:, register_taxonomy('profession', 'use...。
  • WooTumblog 》透過這個外掛程式,您可以建立一個 Tumblr 風格的部落格。只要安裝這個外掛程式,將易於使用的標籤加入您的佈景主題,您的部落格就會轉變成 Tumblr 風格。您...。
  • TC Custom Taxonomy Filter 》使用此外掛,您可以像 WordPress 內建的分類篩選器一樣,按自訂分類篩選器來篩選您的文章(包括自訂文章類型)。。
  • MW Taxonomy 》該外掛需要支持小工具的主題。未創建任何區塊以顯示您的自定分類。, 在您的 WordPress 管理的網站中添加一個或多個自定分類。, 該外掛專注於易於使用的界面,...。
  • ANG Timeline 》ANG Timeline 是一個響應式 WordPress 外掛,可讓您創建美麗的垂直時間軸和一系列事件,並將其指定給該時間軸。, 此外掛會在您的 WordPress 博客中添加「time...。
  • States Map US 》這個互動地圖將在彈出窗口中顯示每個美國州的信息。States Map US外掛可以讓您在地圖上顯示有關每個州的信息。一個美麗的彈出窗口界面將顯示有關所選州的信息...。
  • User Taxonomies 》這個外掛擴展了預設的分類功能,將其擴展到使用者身上,同時自動化所有樣板代碼。, 啟用後,您可以使用以下程式碼註冊使用者分類:, register_taxonomy('prof...。

文章
Filter
Apply Filters
Mastodon