跳到內容
  • 登入
  • 註冊
WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛

  • 我的收藏
  • Beta測試
  • 開發者

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

下載

WP Term Images

由John James Jacoby
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

Images for categories, tags, and other taxonomy terms

WP Term Images allows users to assign images to any visible category, tag, or taxonomy term using the media library, providing a customized look for their taxonomies.

Dependencies

Not since WordPress 4.4.

Install the WP Term Meta plugin if you’re on an earlier version.

Also checkout

  • WP Chosen
  • WP Pretty Filters
  • WP Media Categories
  • WP Term Order
  • WP Term Authors
  • WP Term Colors
  • WP Term Icons
  • WP Term Visibility
  • WP User Activity
  • WP User Avatars
  • WP User Groups
  • WP User Profiles

螢幕截圖

  • Category Images

安裝

  • Download and install using the built in WordPress plugin installer.
  • Activate in the “Plugins” area of your admin by clicking the “Activate” link.
  • No further setup or configuration is necessary.

常見問題

Does this create new database tables?

No. There are no new database tables with this plugin.

Does this modify existing database tables?

No. All of WordPress’s core database tables remain untouched.

How do I get the image for a term?

With WordPress’s get_term_meta() function

// image id is stored as term meta
$image_id = get_term_meta( 7, 'image', true );

// image data stored in array, second argument is which image size to retrieve
$image_data = wp_get_attachment_image_src( $image_id, 'full' );

// image url is the first item in the array (aka 0)
$image = $image_data[0];

if ( ! empty( $image ) ) {
    echo '<img src="' . esc_url( $image ) . '" />';
}

Where can I get support?

  • Basic: https://wordpress.org/support/plugin/wp-term-images/
  • Priority: https://chat.flox.io/support/channels/wp-term-images/

Where can I find documentation?

http://github.com/stuttter/wp-term-images/

評價

Simple and less intrusive

Alvaro Gois dos Santos 2021年1月23日
It's simple and less intrusive than other plugins that do the same. It blends better with WordPress UI. It doesn't show anything in the frontend if the correct code isn't added to the theme, something like this I guess: <?php $taximg_id = get_queried_object()->term_id; // image id is stored as term meta $image_id = get_term_meta( $taximg_id, 'image', true ); // image data stored in array, second argument is which image size to retrieve $image_data = wp_get_attachment_image_src( $image_id, 'full' ); // image url is the first item in the array (aka 0) $image = $image_data[0]; if( $image ) { echo "<img src=" . $image . " class='term-image'>"; } ?>

Plugin is out of date, don’t use

joopon 2019年5月23日
Not compatible with Woocommerce 3.6.3. All taxonomies disappear.

Just what I need

Knut Sparhell 2019年5月1日
Excellent! Works like a charm. Very useful for building nice term pages.

Thank you

dimitris33 2017年6月2日
Just tested with the latest version of WP.

Best Plugin For Uploading Term Images

Michelle 2017年4月29日
Used this plugin to upload images for each category and child category using get_terms to display the images in a template.

Thanks!

wellbeingtips 2017年1月27日
keep up the good job!
閱讀全部10個評價

貢獻者及開發者

“WP Term Images” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • John James Jacoby
  • Stuttter

WP Term Images 外掛目前已有 9 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 WP Term Images 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

[1.0.0] – 2017-01-16

  • Stability!
  • Fix text domains
  • Simplify some JavaScript
  • Handle more JavaScript edge-cases

[0.3.1] – 2016-07-13

  • Fix regular edits

[0.3.0] – 2016-05-27

  • Fix quick-edits
  • Update WP Term Meta UI dependency to 0.1.9

[0.2.0] – 2016-01-07

  • Fix new-term form action hi-jacking
  • Update WP Term Meta UI dependency to 0.1.4

[0.1.0] – 2015-11-09

  • Initial release

其它

  • 版本:1.0.0
  • 最後更新:2 年之前
  • 運作中的安裝:3,000+
  • WordPress Version: 4.4 or higher
  • 已測試到版本:5.6.10
  • 語言:

    Chinese (Taiwan)、English (UK)、English (US)、German、Japanese、Norwegian (Bokmål)、Polish、Portuguese (Portugal)、Spanish (Spain)、及 Swedish.

    翻譯成你的語言

  • 標籤:
    imagemetametadatataxonomyterm
  • 進階顯示

評分

顯示全部
  • 5星 9
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 1
Log in to submit a review.

貢獻者

  • John James Jacoby
  • Stuttter

支援

最近兩個月解決了的問題:

1個中的0個

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 寄存
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛
  • 佈景主題
  • 區塊版面配置
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Hong Kong 香港中文

  • 訪問我們的 Facebook 專頁
  • 訪問我們的 Twitter 帳戶
  • Visit our Instagram account
  • Visit our LinkedIn account
代碼就是詩歌。