跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Advanced Category and Custom Taxonomy Image

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Advanced Category and Custom Taxonomy Image

由 Sajjad Hossain Sagor 開發
下載
即時預覽
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Now its easier to include category / custom taxonomy image with this plugin for different platforms. No need to overload mobile bandwidth with high pixel image size. You can now select different image for different devices. Upload Different Image For Different Devices ex: Mobile, Tablet, Desktop, iOS, Android, Windows Phone.
Built-in Template Tag To Use Anywhere You Want In Your Theme : get_taxonomy_image( $term_id, $return_img_tag, $class );

Documentation

$taxonomy_img = get_taxonomy_image( int $term_id = get_queried_object()->term_id , boolean $return_img_tag = false , string $class = '' );

get taxonomy image url if $return_html = true then return  tag

Parameters :
$term_id
(int) (Required) Taxonomy ID of the term.

$return_img_tag
(boolean) (Optional) Formatted Image with  tag for the field during output.

$class
(string) (Optional) A space separated string of CSS classes to add to the  tag. classes ex: "your custom class list separated by space" but $return_img_tag should be true to add image class.

echo $taxonomy_img; // taxonomy image url

where $term_id is ‘category / term id’

Shortcode : use the shortcode anywhere to get taxonomy image. If you don’t provide “term_id” value then it will be current queried page taxonomy automatically.

echo do_shortcode( '[ad_tax_image term_id="" return_img_tag="true" class="your custom class list seperated by space"]' ); // keep term_id empty if you want to show current visited taxonomy archive image.

Features

  • Option To Enable Custom Image Upload for different taxonomies
  • Option To Enable Custom Image Upload for different devices
  • Very simple to use & WP Default Media Uploaded to upload image
  • Built-in Template Tag to use in your theme template
  • Shortcode to use anywhere.

螢幕擷圖

  • Settings page for enabling taxonomy image upload for different taxonomies
  • Settings page for enabling taxonomy image upload for different devices
  • Auto Template Tag Generation
  • Taxonomy Edit Page

安裝方式

  1. Go to WordPress plugin page
  2. Click Add New & Upload Plugin
  3. Drag / Click upload the plugin zip file
  4. The resulting installation screen will list the installation as successful or note any problems during the install.
    If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
  5. Go to your Dashboard -> Settings -> Advanced Category & Taxonomy Image.
  6. There You Will Find Fields To Enable Taxonomy & Device Filters.
  7. After Enabling Go To Your Taxonomy Add/Edit Page To Upload Image

常見問題集

  1. How can i use the image i uploaded?
    Get Your Taxonomy tag_ID and use get_taxonomy_image( $term_id ) to get the image url and use it in your theme’s template area where you want to show it. (Note : In the taxonomy list there you will find already created template tag to use see screenshot 3)

使用者評論

Great support

zydecon 2025 年 11 月 7 日
Great support. The plugin had a bug and the plugin author fixed it immediately.

Simple, effective plugin.

fwuk 2022 年 7 月 8 日
I have used it. Works fine. Thank you for a useful plugin.

This plugin is a life saver

2021 年 1 月 30 日
Really good plugin, the author responds quickly and is very friendly.

How display image on single.php

Taher Almahdi 2020 年 7 月 5 日 1 則留言
I try to display taxonomy images on single post using <?php get_taxonomy_image(1455); ?>, but images don’t show. How does slove this issue?

Nice plugin!!!

Rigo Sandoval Uribe 2019 年 9 月 6 日
Excellent plugin for different images for each device.
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Advanced Category and Custom Taxonomy Image〉的開發相關工作。

參與者
  • Sajjad Hossain Sagor

將〈Advanced Category and Custom Taxonomy Image〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.9

  • Added option to select message type when no image is found

2.0.8

  • Compatibility checkup for latest wp version 6.9

2.0.7

  • Fixed issue: Tax image was not updating for any device type.
  • Enhancements: Now you can see selected image real time.

2.0.6

  • Fixed issue: typo giving fatal error

2.0.5

  • Fixed issue: when there are no device enabled it gives fatal error

2.0.4

  • Minor changes in the code styling

2.0.3

  • Compatibility checkup for latest wp version 6.8

2.0.2

  • If for specific device image is not set yet, it will opt for default any device image now

2.0.1

  • Fixed bug function get_taxonomy_image() was not found

2.0.0

  • Major changes in codebase. Compatibility checkup for latest wp version 6.7

1.1.0

  • Previous version had a bug where Image were not showing even after upload, it has been fixed. Everyone is recommended to update to the latest version. Any device filter is removed from Advanced tab and added as a global device.

1.1.0

  • Major Update.. Please do take backup and update the plugin. Applied wp standard security sanitizations and escaping output to avoid any vulnerability. After update please go check your settings thoroughly and check if it works properly.

1.0.9

  • Minor Update.. tested for latest wp compatibility..

1.0.8

  • Added a new shortcode for dynamic usage in any template or dnd builder. Plus tested for latest wp compatibility..

1.0.7

  • Minor Update.. tested for latest wp compatibility..

1.0.6

  • Minor Update.. tested for latest wp compatibility.. added any device option and code style changed and beautified.

1.0.5

  • Minor Update.. now tax template tag won’t be visible if no image is added

1.0.4

  • Minor Update.. updated for translations ready..

1.0.3

  • Minor Update.. tested for latest wp compatibility..

1.0.2

  • Minor Update.. tested for latest wp compatibility..

1.0.1

  • Minor Update.. tested for latest wp compatibility..

1.0.0

  • Initial release.

中繼資料

  • 版本 2.0.9
  • 最後更新 4 個月前
  • 啟用安裝數 1,000+
  • WordPress 版本需求 5.6 或更新版本
  • 已測試相容的 WordPress 版本 6.9.4
  • PHP 版本需求 8.0 或更新版本
  • 語言
    English (US)
  • 標籤:
    category imagecategory-logofeatured imagetaxonomy imageterm image
  • 進階檢視

評分

5 星,滿分為 5 星
  • 5 個 5 星使用者評論 5 星 5
  • 0 個 4 星使用者評論 4 星 0
  • 0 個 3 星使用者評論 3 星 0
  • 0 個 2 星使用者評論 2 星 0
  • 0 個 1 星使用者評論 1 星 0

Your review

查看全部使用者評論

參與者

  • Sajjad Hossain Sagor

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.