跳至内容
  • 登录
  • 注册
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 消息
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress

插件

  • 我的收藏
  • Beta测试
  • 开发者
下载

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.

Documentation

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

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
(array) (Optional) Array of image classes ex: array('class1','class2',...) but $return_img_tag should be true to add image class.

echo $taxonomy_img; // taxonomy image url

where $term_id is ‘category / term id’

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

Interested in contributing to Drag & Drop Menu Items?
Contact me at sagorh672(at)gmail(dot)com

屏幕截图

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

安装

  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)

评价

very good

MohammadFamo 2023年4月9日
tnx

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订阅开发日志。

更新日志

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 tranlations 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

  • Initial release.

额外信息

  • 版本:1.0.6
  • 最后更新:1年前
  • 有效安装数量:1,000+
  • WordPress版本: 5.6 或更高版本
  • 最高兼容版本:6.0.5
  • 语言:
    English (US)
  • 标签:
    category imagecategory-logofeatured imagetaxonomy imageterm image
  • 高级视图

评级

查看所有评价
  • 5星 5
  • 4星 0
  • 3星 0
  • 2星 0
  • 1星 0
登录以提交评价。

贡献者

  • Sajjad Hossain Sagor

支持

最近两个月解决的问题:

总计 2,已解决 2

查看支持论坛

  • 关于
  • 消息
  • 主机
  • 捐助
  • Swag
  • 支持
  • 开发者
  • 参与
  • 学习
  • 展示站点
  • 插件
  • 主题
  • 区块样板
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隐私
  • Public Code
WordPress.org
WordPress.org

China 简体中文

  • 访问我们的 Facebook 公共主页
  • 关注我们的 Twitter 账号
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
代码如诗