WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: taxonomy-images (Used by 2,499 domains)

Taxonomy Images

๐Ÿ‘ค Ben Huson ๐Ÿ“ฆ v1.0 ๐Ÿ”— Plugin Homepage

Displaying Your Images in Your Theme

There are a few filters that you can use in your theme to display the image associations created by this plugin. Please read below for detailed information.

Display a single image representing the term archive

The following filter will display the image associated with the term asked for in the query string of the URL. This filter only works in views that naturally use templates like category.php, tag.php, taxonomy.php and all of their derivatives. Please read about template hierarchy for more information about these templates. The simplest use of this filter looks like:

print apply_filters( 'taxonomy-images-queried-term-image', '' );

This code will generate and print an image tag. Itโ€™s output can be modifed by passing an optional third parameter to apply_filters(). This parameter is an array and the following keys may be set:

  • after (string) โ€“ Text to append to the imageโ€™s HTML.

  • attr (array) โ€“ Key / value pairs representing the attributes of the img tag. Available options include: alt, class, src and title. This array will be passed as the fourth parameter to WordPress core function wp_get_attachment_image() without modification.

  • before (string) โ€“ Text to prepend to the imageโ€™s HTML.

  • image_size (string) โ€“ May be any image size registered with WordPress. If no image size is specified, โ€˜thumbnailโ€™ will be used as a default value. In the event that an unregistered size is specified, this filter will return an empty string.

Hereโ€™s an example of what a fully customized version of this filter might look like:

print apply_filters( 'taxonomy-images-queried-term-image', '', array(
    'attr'       => array(
        'alt'   => 'Custom alternative text',
        'class' => 'my-class-list bunnies turtles',
        'src'   => 'this-is-where-the-image-lives.png',
        'title' => 'Custom Title',
        ),
    'before'     => '
', 'after' => '
', 'image_size' => 'medium' ) );

Similar functionality

If you just need to get the database ID for the image, you may want to use:

$image_id = apply_filters( 'taxonomy-images-queried-term-image-id', 0 );

If you need to get the full object of the image, you may want to use:

$image = apply_filters( 'taxonomy-images-queried-term-image-object', '' );

If you need to get the URL to the image, you may want to use the following:

$image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' );

You can specify the size of the image in an option third parameter:

$image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '', array(
    'image_size' => 'medium'
) );

If you need data about the image, you may want to use:

$image_data = apply_filters( 'taxonomy-images-queried-term-image-data', '' );

You can specify the size of the image in an option third parameter:

$image_data = apply_filters( 'taxonomy-images-queried-term-image-data', '', array(
    'image_size' => 'medium'
    ) );

List term images associated with a post object

When a post is being displayed you may want to display the images associated with all of the terms associated with the post. The taxonomy-images-list-the-terms filter does this. Hereโ€™s what it looks like in its simplest form:

print apply_filters( 'taxonomy-images-list-the-terms', '' );

This filter accepts an optional third parameter that you can use to customize its output. It is an array which recognizes the following keys:

  • after (string) โ€“ Text to append to the output. Default value is a closing unordered list tag.

  • after_image (string) โ€“ Text to append to each image. Default value is a closing list-item tag.

  • before (string) โ€“ Text to prepend to the output. Default value is an open unordered list tag with an class attribute of โ€œtaxonomy-images-the-termsโ€.

  • before_image (string) โ€“ Text to prepend to each image. Default value is an open list-item tag.

  • image_size (string) โ€“ Any registered image size. Values will vary from installation to installation. Image sizes defined in core include: โ€œthumbnailโ€, โ€œmediumโ€ and โ€œlargeโ€. โ€œfullโ€ may also be used to get the unmodified image that was uploaded. Defaults to โ€œthumbnailโ€.

  • post_id (int) โ€“ The post to retrieve terms from. Defaults to the ID property of the global $post object.

  • taxonomy (string) โ€“ Name of a registered taxonomy to return terms from. Defaults to category.

Hereโ€™s an example of what a fully customized version of this filter might look like:

print apply_filters( 'taxonomy-images-list-the-terms', '', array(
    'before'       => '
', 'after' => '
', 'before_image' => '', 'after_image' => '', 'image_size' => 'detail', 'post_id' => 1234, 'taxonomy' => 'post_tag', ) );

Working with all terms of a given taxonomy

You will want to use the taxonomy-images-get-terms filter. This filter is basically a wrapper for WordPress core function get_terms(). It will return an array of enhanced term objects: each term object will have a custom property named image_id which is an integer representing the database ID of the image associated with the term. This filter can be used to create custom lists of terms. Hereโ€™s what itโ€™s default useage looks like:

$terms = apply_filters( 'taxonomy-images-get-terms', '' );

Here is what phpโ€™s print_r() function may return:

Array
(
    [0] => stdClass Object
        (
            [term_id]          => 8
            [name]             => Pirate
            [slug]             => pirate
            [term_group]       => 0
            [term_taxonomy_id] => 8
            [taxonomy]         => category
            [description]      => Pirates live in the ocean and ride around on boats.
            [parent]           => 0
            [count]            => 1
            [image_id]         => 44
        )
)

As you can see, all of the goodness of get_terms() is there with an added bonus: the image_id parameter!

This filter recognizes an optional third parameter which is an array of arguments that can be used to modify its output:

  • cache_images (bool) If this value is true all associated images will be queried and cached for later use in various template tags. If it is set to false, this query will be suppressed. Do not set this value to false unless you have a really good reason for doing so ๐Ÿ™‚ Default value is true.

  • having_images (bool) If this value is true then only terms that have associated images will be returned. Setting it to false will return all terms. Default value is true.

  • taxonomy (string) Name of a registered taxonomy to return terms from. Multiple taxonomies may be specified by separating each name by a comma. Defaults to category.

  • term_args (array) Arguments to pass to get_terms() as the second parameter. Default value is an empty array.

Hereโ€™s an example of a simple custom loop that you can use to display all term images:

$terms = apply_filters( 'taxonomy-images-get-terms', '' );
if ( ! empty( $terms ) ) {
    print '';
}

Support

If you have questions about integrating this plugin into your site, please add a new thread to the WordPress Support Forum. I try to answer these, but I may not always be able to. In the event that I cannot there may be someone else who can help.

Bugs, Suggestions

Development of this plugin is hosted in a public repository on Github. If you find a bug in this plugin or have a suggestion to make it better, please create a new issue

Hook it up yo!

If you have fallen in love with this plugin and would not be able to sleep without helping out in some way, please see the following list of ways that you can hook it up!:

  • Rate it! โ€“ Use the star tool on the right-hand sidebar of the plugin homepage.

  • Let me know if it works โ€“ Use the Compatibility widget on the plugin homepage to let everyone know that the current version works with your version of WordPress.

  • Do you Twitter? Help promote by using this shortlink: http://bit.ly/taxonomy-images

  • Are you a writer? Help promote by writing an article on your website about this plugin.

Need More Taxonomy Plugins?

The original author of this plugin, Michael Fields, released a handful of plugins dealing with taxonomies. Please see his WordPress.org profile for more information.

DomainExposuresHeadersLast Checked
b*g*p*l*-*o*r*.com (WP 6.0.2) โš ๏ธ F 2026-06-07 00:36:56
d*o*e*s*r*m*n*.ru (WP 6.4.8) โš ๏ธ D 2026-06-06 23:10:31
i*l*m*c*t*d*e*.u*l*.edu โœ… D 2026-06-06 20:05:26
b*d*a*i*o*n*i*.com (WP 7.0) โœ… F 2026-06-06 19:55:22
i*f*a.org (WP 6.2.9) โš ๏ธ F 2026-06-06 18:55:21
n*d*a*n*h*i.com (WP 6.8.3) โœ… F 2026-06-06 17:06:08
t*i*h*u*g*r*u*.com (WP 5.5.16) โš ๏ธ A 2026-06-06 16:37:22
a*a*e*y*e*t*r.ru โœ… F 2026-06-06 15:40:58
t*i*t*e*h*c*n*h*t*n*.com (WP 5.4.4) โš ๏ธ A 2026-06-06 15:30:56
p*r*l*i*z*g.de (WP 7.0) โœ… F 2026-06-06 14:54:16
t*i*n*h*c*e*e*g*.com (WP 5.4.4) โš ๏ธ A 2026-06-06 14:13:11
b*c*m*n*.com โœ… F 2026-06-06 13:31:12
b*y*l*g*t*n*.w*e*g*n*.com โœ… F 2026-06-06 12:27:55
b*b*s*e*p*r*.com (WP 7.0) โœ… F 2026-06-06 11:44:45
e*h*p.r*a*s.sk ๐Ÿ”“ F 2026-06-06 10:53:56
a*s*r*e*s.c*.uk (WP 6.9.4) โœ… F 2026-06-06 08:32:57
b*2*h*m*o*l.com โœ… F 2026-06-06 03:37:16
h*d.r*s*a*c*.m*c*o*o*t.com (WP 6.9.4) โœ… D 2026-06-06 03:03:57
m*u*t*i*g*m*h*.com โœ… F 2026-06-06 02:38:24
t*e*s*r*e*i*n*.com (WP 6.5.8) โœ… C 2026-06-05 22:57:04
m*r*l*a*a*e*l*.com (WP 6.9.4) โœ… F 2026-06-05 20:57:00
a*e*i*h*c*u*.com ๐Ÿ”“ A 2026-06-05 19:25:05
m*h*m*e*f*t*.com โœ… A 2026-06-05 19:09:29
l*a*.i*f*.pl (WP 6.3) โš ๏ธ F 2026-06-05 17:53:29
p*9*4*-*8*-*1*4*.s*8*.u*r*s*.link โœ… F 2026-06-05 17:50:17
m*r*g*a*t.com โœ… B 2026-06-05 17:37:06
r*t*i*v*n*.ru (WP 6.9.4) โœ… F 2026-06-05 16:27:29
f*o*n*w*p*o*o*.com โœ… F 2026-06-05 16:09:15
f*o*n*w*p*o*o.com โœ… F 2026-06-05 16:09:15
r*i*t*s*e*e*.ee (WP 7.0) โœ… F 2026-06-05 14:06:22
m*n*s*n*.com (WP 6.9.4) โœ… F 2026-06-05 12:15:43
g*p*o*d*.com (WP 5.3.2) โš ๏ธ A 2026-06-05 10:19:36
v*n*r*u*i.ru (WP 7.0) โœ… F 2026-06-05 10:08:19
b*e*c*.com (WP 6.9.4) โœ… C 2026-06-04 05:32:59
b*e*-*n*c*.com (WP 6.9.4) โœ… C 2026-06-04 05:30:39
b*e*-*o.com (WP 6.9.4) โœ… C 2026-06-04 05:30:39
s*u*l*d*m*s*c*p*g*n*n*.it โœ… C 2026-06-04 03:26:31
b*c*l*r*.com โœ… F 2026-06-04 02:35:08
f*e*g*o*p.com (WP 5.1.22) โš ๏ธ F 2026-06-04 01:59:08
a*i*c*n.com (WP 7.0) โœ… F 2026-06-04 00:45:46
m*a*a*p*.com (WP 7.0) โœ… F 2026-06-03 23:54:39
m*l*s*o*o*o*k*.com โœ… F 2026-06-03 23:32:24
f*e*t*o*g*t*l*g*.com ๐Ÿ”“ F 2026-06-03 22:49:28
c*d*x*l*i*e*.c*.uk โœ… F 2026-06-03 21:05:51
j*n*s*o*t*r*.nl โœ… F 2026-06-03 21:03:55
a*a*f*o*t*e*i*d.com โœ… F 2026-06-03 21:02:51
f*e*l*l*s*i*s*r*e*y.com โœ… F 2026-06-03 20:29:01
b*e*e.com โœ… D 2026-06-03 17:38:54
m*l*w*e*s*e*k*y.com โœ… B 2026-06-03 16:47:34
t*e*p*g*y*.com (WP 5.0.22) โš ๏ธ ๐Ÿ”“ F 2026-06-03 16:43:52
b*b*l*o*i*a*c*a*e.com (WP 6.9.4) โœ… F 2026-06-03 16:02:05
t*e*o*b*l*c*s.com (WP 7.0) โœ… F 2026-06-03 15:23:53
i*i*p*a*m*.com (WP 5.3.21) โš ๏ธ F 2026-06-03 15:22:26
t*e*l*s*i*s*r*e*y*x*e*t*.com โœ… F 2026-06-03 14:50:51
f*e*k*a*c*i*e*t*r*.com โœ… F 2026-06-03 12:42:25
f*a*e*m*l*o*.com โœ… F 2026-06-03 11:07:19
f*a*z*l*u*y.com (WP 5.2.24) โš ๏ธ F 2026-06-03 10:41:56
b*v*r*y*i*l*u*o*y*.com โœ… F 2026-06-03 10:26:22
t*e*a*s*o*a*e*a*e.com โœ… F 2026-06-03 10:25:19
b*v*r*y*i*l*f*c*s*r*e*n.com โœ… D 2026-06-03 10:19:32
s*s*e*a*a*e.c*m.br โœ… F 2026-06-03 10:19:18
a*e*t*r*s*s*l*i*e*.com โœ… F 2026-06-03 08:53:59
i*a*o*i*e*e*p*d*t*o*s.com โœ… F 2026-06-03 08:48:05
i*a*o*i*e*a*v*n*u*e*.com โœ… F 2026-06-03 08:48:05
a*e*t*r*m*g*z*n*.com (WP 5.8.1) โš ๏ธ F 2026-06-03 08:34:26
m*d*n.c*.uk (WP 4.1) โš ๏ธ F 2026-06-03 08:10:29
m*t*u*z*a*k*w*k*.com โœ… F 2026-06-03 08:10:04
t*e*p*g*o*p.com โœ… F 2026-06-03 06:08:27
f*a*c*i*r*u*o*t.com (WP 4.5.33) โš ๏ธ F 2026-06-03 06:06:47
p*k*s*a*.com โœ… F 2026-06-03 05:53:06
m*r*k*r*z*n.com โœ… F 2026-06-03 04:46:26
t*e*f*i*e*w*e*.com (WP 6.9.4) โœ… F 2026-06-03 04:13:40
m*e*e*i*e*p*r*.com โœ… C 2026-06-03 03:59:18
m*d*e*t*o*e*a*a*i*e.com (WP 5.8.1) โš ๏ธ F 2026-06-03 02:01:51
m*d*e*t*o*e*a*.com (WP 5.8.1) โš ๏ธ F 2026-06-03 02:01:50
m*d*e*t*o*e.com (WP 5.8.1) โš ๏ธ F 2026-06-03 02:01:50
m*d*e*t*e*i*n*a*.com (WP 5.8.1) โš ๏ธ F 2026-06-03 01:48:40
n*t*o*a*p*r*g*t*w*y*.com โœ… F 2026-06-03 01:35:56
a*v*r*n*m*r*e.com (WP 6.9.4) โœ… F 2026-06-03 01:26:40
f*a*a*e*i*a*.com (WP 6.8.5) โœ… F 2026-06-03 01:25:55
b*p.b*c*y.net โœ… D 2026-06-03 01:20:03
m*i*.b*r*i*e*-*i*t*r*e*e*n.de (WP 6.9.4) โœ… D 2026-06-03 00:15:41
e*e*h*n*s*o*e*.com (WP 4.9.15) โš ๏ธ A 2026-06-02 23:42:50
a*t*t*c*4*o*.com (WP 7.0) โœ… F 2026-06-02 23:39:58
s*m*r*a*i*h*n*a*e*.com โœ… F 2026-06-02 22:53:52
a*t*p*s*a*.com (WP 6.3.7) โš ๏ธ A 2026-06-02 21:37:11
w*m*n.e*l*v*.com (WP 7.0) โœ… F 2026-06-02 20:00:50
t*e*o*i*e*s*.com โœ… F 2026-06-02 19:39:52
w*s*f*r*d*r*a*.w*e*g*n*.com โœ… C 2026-06-02 19:25:21
a*t*k*i*e*.com (WP 6.8.5) โœ… D 2026-06-02 17:49:34
d*3.r*s*a*c*.m*c*o*o*t.com (WP 6.9.4) โœ… D 2026-06-02 17:46:59
c*s*y*e*s*.com (WP 6.8.5) โœ… F 2026-06-02 17:11:06
c*s*l*a*y*c*n*e*.com โœ… D 2026-06-02 16:25:56
m*i*t*n*n*e*o*i*.com (WP 7.0) โœ… F 2026-06-02 16:21:40
m*c*i*a*w*n*c*u*t*y.com (WP 5.8.1) โš ๏ธ F 2026-06-02 15:37:19
m*c*i*a*o*u*o*a*i*l*p*c*a*i*t*.com โœ… C 2026-06-02 15:20:54
m*c*e*l*s*g*r*w*s*.com โœ… F 2026-06-02 13:59:29
m*c*e*l*s*g*r*.com โœ… F 2026-06-02 13:56:59
f*t*t*p.com (WP 6.1.10) โš ๏ธ F 2026-06-02 13:52:40
i*t*t*i.com (WP 6.9.4) โœ… D 2026-06-02 13:17:21

Top 50 Plugins

Plugin Count
elementor 1,834,974
contact-form-7 1,805,395
elementor-pro 1,069,674
woocommerce 831,175
revslider 628,526
jetpack 473,249
js_composer 440,228
wp-rocket 341,005
essential-addons-for-elementor-lite 300,145
gravityforms 270,579
complianz-gdpr 262,997
cookie-law-info 236,572
instagram-feed 232,313
google-site-kit 226,154
sitepress-multilingual-cms 225,560
google-analytics-for-wordpress 217,459
header-footer-elementor 213,861
elementskit-lite 211,389
bluehost-wordpress-plugin 191,844
gutenberg 164,589
gutenberg-core 162,474
cookie-notice 155,603
litespeed-cache 135,239
the-events-calendar 134,880
wpforms-lite 131,470
gtranslate 130,461
astra-sites 121,039
popup-maker 118,166
woocommerce-payments 114,462
tablepress 112,366
coblocks 101,429
honeypot 99,514
astra-addon 96,982
duracelltomi-google-tag-manager 95,600
wp-smushit 95,268
all-in-one-seo-pack 94,836
LayerSlider 93,178
bb-plugin 91,997
megamenu 88,536
premium-addons-for-elementor 88,535
akismet 87,226
mailchimp-for-wp 85,188
cleantalk-spam-protect 85,035
woocommerce-gateway-stripe 84,457
ml-slider 82,764
borlabs-cookie 81,569
fusion-builder 81,119
wp-pagenavi 80,609
ewww-image-optimizer 80,505
formidable 79,254

Top 50 Themes

Theme Count
hello-elementor 627,686
Divi 519,455
astra 431,031
flatsome 140,279
Avada 126,551
generatepress 124,831
pub 111,883
oceanwp 85,062
kadence 80,297
enfold 73,148
salient 67,774
twentytwentyfour 59,833
h4 57,433
twentyseventeen 57,275
bb-theme 55,987
betheme 52,878
cocoon-master 52,403
blocksy 51,939
dt-the7 47,031
twentytwentyfive 44,923
neve 40,199
Avada-Child-Theme 38,272
sydney 37,893
woodmart 33,918
gox 33,881
bridge 33,424
twentytwentyone 32,668
lightning 31,833
twentytwenty 30,617
swell 28,847
Impreza 27,049
bricks 26,563
twentytwentythree 24,358
Newspaper 24,061
voxel 23,714
kubio 20,713
sinatra 20,411
twentytwentytwo 20,219
uncode 19,485
epik-redesign 19,279
twentysixteen 18,605
storefront 18,237
pro 18,053
Total 14,987
extendable 14,808
yith-wonder 14,114
hello-theme-child-master 13,652
themify-ultra 13,248
yootheme 13,220
hestia 13,119