Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make…
About Taxonomy Images
This article explains how to display images associated with terms in your WordPress theme using the Taxonomy Images plugin. It provides code examples and customization options for displaying single images and lists of images. It also includes information on how to get the image ID, image object, image URL, and image data. Additionally, it offers support resources and suggestions for promoting the plugin.Screenshots



Frequently asked questions
What does the Taxonomy Images plugin do?
The Taxonomy Images plugin allows you to associate images from your media library with categories, tags, and custom taxonomies in WordPress.
How can I display images in my theme using this plugin?
You can display images in your theme by using filters like 'taxonomy-images-queried-term-image'. This filter works in templates such as category.php, tag.php, and taxonomy.php.
What options are available for customizing the displayed image?
You can customize the displayed image by passing an array of options to the filter. These options include 'after' and 'before' text, 'attr' for image tag attributes like alt and class, and 'image_size' to specify the image size.
What is the default image size if not specified?
If no image size is specified, 'thumbnail' will be used as the default value for the displayed image.
Changelog
Unreleased
1.0
- BUGFIX: Fixed full image size sometimes not being returned.
- UPDATE: Control, blank and default images moves to
imagesfolder. - UPDATE: Prepare plugin structure for term meta compatibility.
0.9.7
- UPDATE: Remove use of deprecated
image_resizefunction. - UPDATE: Bump minimum WordPress version to 3.5.
0.9.6
- BUGFIX: Fix issue where if no terms have images but ‘having_images’ is false, nothing would be returned (props Matt).
0.9.5
- BUGFIX: Fix loading of admin stylesheet when editing terms in WordPress 4.5
0.9.4
- BUGFIX: Fix for taxonomy names that may contain characters other than lowercase and underscores (e.g. uppercase).
0.9.3
- BUGFIX: Fix post permissions error when using media modal.
0.9.2
- BUGFIX: Fix old and new media modal opening simultaneously in some circumstances.
- UPDATE: Documentation: Pedantic corrections. Props Gary Jones
- UPDATE: Added CHANGELOG.md file.
0.9.1
- BUGFIX: Fixes media modal not opening on newly created terms.
- UPDATE: Adhere to WordPress PHP coding standards.
0.9
- COMPAT: Add support for WordPress 3.5+ media modal.
- COMPAT: Confirmed minimum WordPress 3.4 required.
- UPDATE: Add Spanish translation.
- UPDATE: Make images retina sized in the admin.
- UPDATE: Re-color admin image and icons to fit with more recent versions of WordPress.
- UPDATE: Stop using deprecated
image_resize()function. - UPDATE: Stop using deprecated
screen_icon()function. - UPDATE: Move JavaScript and CSS files to subfolders.
- UPDATE: Added screenshots for WordPress.org
- UPDATE: Add husobj as a contributor.
0.8.0
- COMPAT: Use
jQuery.on()instead ofjQuery.live(). Props jamiemchale. - UPDATE: Pass an empty array as default second parameter of
taxonomy_images_plugin_get_the_terms()andtaxonomy_images_plugin_list_the_terms(). - UPDATE: Give the button on the custom admin screen a class of
button-primary. - UPDATE: Store the return value of
get_posts()in a variable called$images. Not sure why, but this should not harm anything. - UPDATE: Change license to
GPLv2 or laterfor maximum flexibility and compatibility. - UPDATE: Random whitespace fixes.
- UPDATE: Update Documentation.
- UPDATE: CSS coding standards.
- UPDATE: Bump version number.
- UPDATE: Update readme files.
- UPDATE: Add jamiemchale as a contributor.
0.7.3
- BUGFIX: Fixed the delete image button on edit-terms.php.
- UPDATE: Better escaping.
- UPDATE: Introduced
.potfile and languages directory.
0.7.2
- UPDATE: Return data for fullsize images in archive views. See this thread.
0.7.1
- BUGFIX: Remove unused link code which is throwing an error when no taxonomies support images.
0.7
- COMPAT: No longer breaks display of the Better Plugin Compatibility Control plugin.
- UPDATE: Created a custom filter interface for plugin and theme integration.
- UPDATE: Lots of inline documentation added.
- UPDATE: Added custom notices if plugin is used in an unsupported way.
- UPDATE: No notices generated by PHP or WordPress.
- UPDATE: Deprecated function calls removed.
- UPDATE: Security updates.
- UPDATE: All strings are now internationalized.
- UPDATE: Add image to term functionality mimics “Add Featured Image”.
- UPDATE: Taxonomy modal button now available in search + upload states.
- UPDATE: Image interface has been added to single term edit screen.
- UPDATE: Users can now choose which taxonomys have image support.
- UPDATE: All functions are now private.
- UPDATE: Shortcode deprecated.
- UPDATE: All global variables and constants have been removed or deprecated.
0.6
- UPDATE: Completely recoded.
- Never released.
0.5
- UPDATE: Direct link to upload new files from
edit-tag.phphas been introduced. - UPDATE: Ability to create an image/term association immediately after upload has been introduced.
- UPDATE: Users can now delete image/term associations.
- UPDATE: Created standalone javascript files – removed inline scripts.
- UPDATE: Obsessive compulsive syntax modifications.
- UPDATE: Localization for strings – still need to “fine-tooth-comb” this.
- UPDATE: Removed all debug functions.
0.4.4
- BUGFIX:
get_image_html()Now populates the image’saltattribute with appropriate data. Props to jaygoldman.
0.4.3
- COMPAT: Removed use of deprecated function
is_taxonomy()– props to anointed. - COMPAT: Included a definition for
taxonomy_exists()function for backwards compatibility with 2.9 branch. This function is new in WordPress version 3.0. - UPDATE: Support for WordPress 3.0 has been added. Support for all beta versions of 3.0 has been dropped.
0.4.2
- UPDATE: Changed button name from “Category” to “Taxonomy”.
- UPDATE: Support for 2.9 branch has been added again.
0.4.1
- UPDATE: Added support for dynamic taxonomy hooks for
_tag_row(). - BROKEN: Support for 2.9 branch has been temporarily removed.
0.4
- BUGFIX:
get_thumb()now returns the fullsize URL if there is no appropriate intermediate image. - UPDATE: Added “taxonomy_images_shortcode”.
0.3
- BUGFIX: Deleted the
register_deactivation_hook()function – sorry to all 8 who downloaded this plugin so far ? - COMPAT: Changed the firing order of every hook utilizing the
category_rowsmethod to 15. This allows this plugin to be compatible with Reveal IDs for WP Admin. Thanks to Peter Kahoun - COMPAT: Added Version check for PHP5.
- UPDATE:
$settingsand$localeare now public properties. - UPDATE: Object name changed to
$taxonomy_images_plugin. - UPDATE: Added argument
$term_tax_idto bothprint_image_html()andget_image_html().
0.2
- Original Release – Works with WordPress 2.9.1.
