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

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

Taxonomy Images

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
s*i*s*.com (WP 6.0.12) F Jul 30, 2026
h*w*.com (WP 7.0.2) F Jul 30, 2026
q*c*i*i*g.cn (WP 6.9.4) F Jul 30, 2026
d*b*r*t*i.com C Jul 30, 2026
a*d*o*a*j*.com (WP 5.6.17) F Jul 30, 2026
e*e*a*e.fi F Jul 30, 2026
w*n*e*x*p*r*.com (WP 7.0.2) F Jul 30, 2026
m*d*e*.c*.uk (WP 7.0.2) F Jul 30, 2026
a*c*e*r*e*e*u*o*t.com (WP 7.0.2) F Jul 29, 2026
d*a*t*n*l*o.com D Jul 29, 2026
c*r*a*a*-*e*b*i*l*u*.com F Jul 29, 2026
f*n*a*e*i*s.org (WP 7.0.2) F Jul 29, 2026
c*s*d*s*b*e*e*a.c*m.br (WP 6.9.5) A Jul 29, 2026
1*0*m*.com F Jul 29, 2026
d*a*a*i*p*n*a*e.com (WP 7.0.2) F Jul 29, 2026
p*i*t*n*p*l*k*.com (WP 6.4.8) F Jul 29, 2026
s*i*o*m*l*n.com (WP 5.4.4) A Jul 29, 2026
l*e*a*h*u*o.com A Jul 29, 2026
v*e*e*p*a*n*e*g*y.com D Jul 29, 2026
v*e*a*t*m*t*.com F Jul 29, 2026
j*f*.org F Jul 29, 2026
l*a*i*e*a*d.org F Jul 29, 2026
1*0*e*a.com F Jul 29, 2026
k*p*s*o*t.pl F Jul 29, 2026
l*u*e*s*r*n*s*e*.com F Jul 29, 2026
l*u*e*s*r*n*s.com F Jul 29, 2026
e*c*a*t*u*.me (WP 4.3.34) F Jul 29, 2026
m*s*k*n*.c*.il C Jul 29, 2026
f*o*f*s*o*.com F Jul 29, 2026
d*a*o*w*l*o*.com F Jul 29, 2026
h*n*a*y.com F Jul 29, 2026
t*e*r*k*o*s*h*t*.com F Jul 29, 2026
p*i*i*i*e*o*c*s*.com (WP 7.0.2) F Jul 29, 2026
p*i*e*v*n*s.com F Jul 29, 2026
h*m*h*e*s.com F Jul 29, 2026
h*m*r*o*c*e*c*a.com (WP 7.0.2) F Jul 29, 2026
r*b*r*m*t*i*.com (WP 6.1.4) F Jul 29, 2026
s*g*i*h*b*r*a*e*e*i.com (WP 6.7.5) F Jul 29, 2026
h*m*i*d*h*e*e.com F Jul 29, 2026
s*g*h*b*s*o*c*i*g.com F Jul 29, 2026
m*s*s*a*t*r*v*n*e.ru (WP 7.0) F Jul 29, 2026
s*g*b*o*b*.com F Jul 29, 2026
f*n*a*i*n*d*.com C Jul 29, 2026
f*n*a*i*n*c*f.com C Jul 29, 2026
t*m*e*.c*m.pl (WP 7.0.2) F Jul 29, 2026
r*y*l*s*a*r*v*l*n.com (WP 5.4.15) A Jul 29, 2026
v*x*o*m*.com F Jul 29, 2026
v*x*t*a*e*.com F Jul 29, 2026
p*u*g*t*e*t*r*s*o*.de F Jul 29, 2026
v*x*-*a.com F Jul 29, 2026
v*x*-*u*t*a*i*.com F Jul 29, 2026
p*i*e*u*u*y*u*f*t.com (WP 7.0.2) F Jul 29, 2026
a*o*e*e*g*.com (WP 7.0.2) F Jul 29, 2026
n*w*u*v*.com (WP 5.3.2) A Jul 29, 2026
i*s*r*s*l*e*c*.org (WP 6.7.5) A Jul 29, 2026
l*u*e*s*r*n*s.co D Jul 29, 2026
m*n*i*n*-*a*e*a*l.com F Jul 29, 2026
m*n*g*m*r*r*w.com (WP 6.6.5) F Jul 29, 2026
g*o*a*-*i*e*.c*.uk (WP 7.0.2) F Jul 29, 2026
r*o*e*n.com (WP 5.6.17) F Jul 29, 2026
m*n*e*r*s*o*a*a*i*e.com F Jul 29, 2026
d*-*o*m*n*t*.org F Jul 29, 2026
l*u*e*s*r*n*s*t*g*n*.com F Jul 29, 2026
m*n*a*a*o*k*o*k*.com (WP 5.6.17) F Jul 29, 2026
d*o*i*-*r*e*t*s*h*t*.de (WP 6.9.5) F Jul 29, 2026
i*h*.com (WP 4.9.8) F Jul 29, 2026
i*h*o*r*w.com F Jul 28, 2026
h*d*t*c*.com F Jul 28, 2026
a*l*n*a*a*a*i*e.com (WP 5.8.1) F Jul 28, 2026
m*r*b*r*c*.pt (WP 7.0.2) F Jul 28, 2026
t*a*f*n*x.com F Jul 28, 2026
k*f*m*u*h*z.hu (WP 5.9.13) F Jul 28, 2026
j*a*s*n*o*a*.com (WP 4.8.7) F Jul 28, 2026
l*s*n*g*t*n*h*t*t*n*c*o*c*s*.com F Jul 28, 2026
v*z*e*l.com D Jul 28, 2026
h*b*r*m*.com F Jul 28, 2026
h*b*r*c*.com F Jul 28, 2026
f*p*o*.ru (WP 7.0.2) F Jul 28, 2026
f*i*e*e*s*.com F Jul 28, 2026
g*n*o*s.com (WP 7.0.2) F Jul 28, 2026
m*t*a*h*a*l*r*h*p.com (WP 6.8.6) F Jul 28, 2026
a*b*s*a*l*r*n*.com (WP 6.8.6) F Jul 28, 2026
s*b*.pl (WP 7.0.2) F Jul 28, 2026
p*e*t*g*o*s*e*u*s.com (WP 6.5.8) F Jul 28, 2026
p*e*t*g*o*s*t*r*w*r*s.com (WP 6.8.6) F Jul 28, 2026
e*5*.ru (WP 5.8.13) F Jul 28, 2026
d*-*n*m*l*u*r*.vn (WP 4.9.8) A Jul 28, 2026
c*c*.o*g.co (WP 7.0.2) D Jul 28, 2026
d*e*t*u*n*t*i*h.vn (WP 5.4.4) F Jul 28, 2026
n*w*i*e*i*a.com (WP 5.1.1) F Jul 28, 2026
p*e*s*o*m*q*i*m*n*.com (WP 7.0.2) F Jul 28, 2026
p*e*s*r*s*m*r*h.com F Jul 28, 2026
s*c*t*a*e*.com (WP 6.7.4) F Jul 28, 2026
m*n*o*i*.com F Jul 28, 2026
n*w*a*d*r*v*l*i*r*t*o*.com (WP 5.4.4) A Jul 28, 2026
m*n*y*a*k*w*t*n*k*i*.com (WP 6.5.8) F Jul 28, 2026
c*r*w*z*r*.c*.uk (WP 7.0.2) F Jul 28, 2026
p*e*i*e*t*a*f*g*t*l*b.com F Jul 28, 2026
t*s*p.com (WP 4.9.26) F Jul 28, 2026
t*s*n*t*f*r*.com (WP 4.8.25) F Jul 28, 2026

Top 50 Plugins

Plugin Count
elementor 1,776,840
contact-form-7 1,758,478
elementor-pro 1,055,074
woocommerce 817,523
revslider 611,279
jetpack 457,533
js_composer 421,938
wp-rocket 341,667
essential-addons-for-elementor-lite 266,173
complianz-gdpr 259,008
gravityforms 257,969
google-site-kit 232,386
cookie-law-info 229,699
instagram-feed 225,821
sitepress-multilingual-cms 211,333
header-footer-elementor 208,143
google-analytics-for-wordpress 206,707
bluehost-wordpress-plugin 192,722
elementskit-lite 181,340
gutenberg 167,440
cookie-notice 149,808
litespeed-cache 143,617
gtranslate 125,686
wpforms-lite 124,882
the-events-calendar 122,872
gutenberg-core 118,836
astra-sites 114,110
popup-maker 110,286
woocommerce-payments 110,090
tablepress 102,271
honeypot 98,128
astra-addon 94,242
wp-smushit 91,393
coblocks 91,360
duracelltomi-google-tag-manager 90,662
layerslider 89,815
all-in-one-seo-pack 89,546
bb-plugin 87,277
akismet 85,312
premium-addons-for-elementor 84,794
cleantalk-spam-protect 83,108
ml-slider 83,006
mailchimp-for-wp 82,301
megamenu 80,581
woocommerce-gateway-stripe 79,920
jet-engine 77,827
fusion-builder 77,530
ewww-image-optimizer 76,707
wp-pagenavi 76,574
smart-slider-3 76,516

Top 50 Themes

Theme Count
hello-elementor 622,854
Divi 498,842
astra 416,322
flatsome 137,650
Avada 121,751
generatepress 115,146
pub 82,875
oceanwp 80,967
kadence 79,065
enfold 69,212
salient 65,526
twentyseventeen 54,508
bb-theme 53,547
betheme 52,521
twentytwentyfour 52,277
blocksy 51,124
cocoon-master 49,306
dt-the7 45,611
twentytwentyfive 44,890
woodmart 42,031
h4 41,331
neve 38,332
Avada-Child-Theme 37,020
gox 36,279
bridge 31,570
twentytwentyone 30,405
lightning 29,914
twentytwenty 28,851
swell 27,943
bricks 26,539
Impreza 26,135
Newspaper 24,300
twentytwentythree 22,160
epik-redesign 19,218
twentytwentytwo 18,866
uncode 18,639
twentysixteen 17,652
pro 17,630
sydney 16,648
storefront 16,402
Total 14,495
hello-theme-child-master 14,034
factory-templates-4 13,726
themify-ultra 13,004
extendable 12,960
hestia 12,657
yootheme 12,597
yith-wonder 12,316
porto 12,027
twentyfifteen 11,829