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

Plugin: taxonomy-images (Used by 2,335 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
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
n*v.vc F Jul 28, 2026
s*p*s.cz F Jul 28, 2026
f*u*d*o*e*w*r*d*n*i*e.com D Jul 28, 2026
f*u*d*o*e*w*r*d.com D Jul 28, 2026
t*s*o*-*o*m*t*o*.fr F Jul 28, 2026
f*n*a*i*n*c*f.fr C Jul 28, 2026
p*e*e*g*.com (WP 6.4.8) F Jul 28, 2026
s*b*e*h*m*.com F Jul 28, 2026
g*m*g.com (WP 5.8.1) F Jul 28, 2026
t*e*u*c*f*v*e*n*m.com (WP 7.0) A Jul 28, 2026
g*i*c*o*.com F Jul 28, 2026
g*i*c*o*-*o*u*b*s.com F Jul 28, 2026
g*i*c*o*-*o*u*b*s.com F Jul 28, 2026
a*a*k*t*.kg (WP 5.8.2) F Jul 28, 2026
k*s*i*t*a*l*n*.com (WP 7.0.2) F Jul 28, 2026
l*r*c*s*o*.com F Jul 28, 2026
m*u*i*r*t*.fr F Jul 28, 2026
s*b*t*e*.com D Jul 28, 2026
d*s*b*a.nl F Jul 28, 2026
c*t*o*i*v*r*i*i*n.org F Jul 28, 2026
c*p*e*h.vn (WP 5.3.2) A Jul 28, 2026
g*i*l*e*t*v*l.com (WP 5.8.1) F Jul 28, 2026
d*s*u*i*s.gr F Jul 28, 2026
m*n*-*r*j*c*.com C Jul 28, 2026
l*f*o*t.ca F Jul 28, 2026
k*h*n*a*t.com (WP 7.0.2) F Jul 28, 2026
f*o*i*a*u*u*y*o*e*g*i*e.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*l*u*t*a*e*m*g.com (WP 5.8.1) F Jul 28, 2026
g*d*u*i*e.it F Jul 28, 2026
f*o*i*a*e*i*n*a*p*.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*t*r*.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*o*r*e*i*d*r.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*o*r*e*o*k.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*a*l*s*d*t*o*.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*i*m*h*m*s*n*d*c*r.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n*a*a*i*e.com (WP 5.8.1) F Jul 28, 2026
f*o*i*a*e*i*n.com (WP 5.8.1) F Jul 28, 2026
c*p*c*d*o*o*.com (WP 7.0.2) F Jul 27, 2026
p*e*e*r*d*p.com C Jul 27, 2026
i*v*s*a.com C Jul 27, 2026
c*o*i*b*o*e*h.com (WP 5.4.4) A Jul 27, 2026
g*e*o*y*o*e*.com (WP 6.0.12) F Jul 27, 2026
b*t*o*a*t*m.vn A Jul 27, 2026
d*n*a*r*t*e*s.com C Jul 27, 2026
d*n*a*a*t*n*r*t*e*s.com C Jul 27, 2026
g*e*o*r*a*r*.com (WP 7.0.2) F Jul 27, 2026
d*n*p*u*v*n*a.com C Jul 27, 2026
l*n*b*n*.com F Jul 27, 2026
n*u*o*h*r*a*i*t.com F Jul 27, 2026
a*e*u*p*a*t*c*u*g*r*.ca F Jul 27, 2026
s*e*u.pl F Jul 27, 2026
i*v*x*.com (WP 7.0.2) A Jul 27, 2026
i*v*u*d*r*r*t*n*.com (WP 7.0.2) F Jul 27, 2026
p*e*i*e*o*l*o.com F Jul 27, 2026
m*l*i*-*e*i*n.com F Jul 27, 2026
v*s*t*i*k*a*d.com F Jul 27, 2026
g*e*n*r*n*f*r*a*i*n*a*d*.com F Jul 27, 2026
t*v*l*n*f*o*r*.com (WP 6.8.6) F Jul 27, 2026
g*e*n*e*v*l*e*.com F Jul 27, 2026
g*e*n*e*h*a*l*y*l*s*e*.com F Jul 27, 2026
k*d*m*m*.com (WP 5.5.3) F Jul 27, 2026
a*p*a*e*l*h.vn (WP 5.4.4) B Jul 27, 2026
p*l*n*u.dk B Jul 27, 2026
n*e*l*s*t*k*.net (WP 5.2.24) F Jul 27, 2026
n*u*s*h*l*b*t*.com D Jul 27, 2026
c*n*a*i*d.com (WP 4.9.29) D Jul 27, 2026
m*k*v*n*s.com (WP 6.8.6) F Jul 27, 2026
m*k*l*i*t*r*s*i*a*s*s*a*c*.com (WP 6.4.8) F Jul 27, 2026
r*a*r*p*.com (WP 6.8.6) C Jul 27, 2026
r*s*n*o*a*v*z.com (WP 6.0.12) F Jul 27, 2026
c*n*m*o*i*i*e*.com (WP 7.0.2) F Jul 27, 2026
m*i*r*o*g*r*n*k*a*g.com (WP 5.9.2) A Jul 27, 2026
f*a*c*a*s*c*n*e*e*p*a*.fr D Jul 27, 2026
n*t*l*n*.com (WP 7.0.2) F Jul 27, 2026
r*o*l*.com (WP 7.0.2) F Jul 27, 2026
t*m*o.c*m.vn (WP 4.9.12) A Jul 27, 2026
f*e*t*e*.com F Jul 27, 2026
r*d*i*a*s*a*.com F Jul 27, 2026
a*l*o*s.net (WP 7.0.2) D Jul 27, 2026
f*a*o*r*a*d*r*g*a*c*s.com F Jul 27, 2026
a*b*n*.eu F Jul 27, 2026
n*t*i*a*e*c*o.c*m.br (WP 7.0.2) F Jul 27, 2026
b*i*d*n*o*f*c*.net (WP 6.9.5) F Jul 27, 2026
k*n*n*w*.it (WP 5.7.15) F Jul 27, 2026
h*a.ltd D Jul 27, 2026
g*e*n*d*l*x*.com (WP 5.0.22) F Jul 26, 2026
r*s*i*.com F Jul 26, 2026
d*k*m*d*c*l.com F Jul 26, 2026
d*k*c*i*i*.com F Jul 26, 2026
r*s*f*c*a*p*a*t*c*.com C Jul 26, 2026
t*r*q*e*i*d*q*i.com (WP 7.0.2) D Jul 26, 2026
m*d*r*p*o*e*s*q*i*m*n*.com C Jul 26, 2026
p*n*s*c.com F Jul 26, 2026
c*m*u*p*o*r*s*n*t*o*k.com F Jul 26, 2026
c*m*u*p*o*r*s*.com F Jul 26, 2026
p*n*d*v*e*n*m.com (WP 6.0) A Jul 26, 2026

Top 50 Plugins

Plugin Count
elementor 1,775,410
contact-form-7 1,756,861
elementor-pro 1,054,352
woocommerce 817,193
revslider 610,632
jetpack 456,984
js_composer 421,389
wp-rocket 341,558
essential-addons-for-elementor-lite 265,838
complianz-gdpr 258,645
gravityforms 257,841
google-site-kit 232,629
cookie-law-info 229,401
instagram-feed 225,599
sitepress-multilingual-cms 211,043
header-footer-elementor 207,927
google-analytics-for-wordpress 206,487
bluehost-wordpress-plugin 192,657
elementskit-lite 181,083
gutenberg 167,387
cookie-notice 149,562
litespeed-cache 143,604
gtranslate 125,468
wpforms-lite 124,570
the-events-calendar 122,730
gutenberg-core 116,889
astra-sites 113,943
popup-maker 110,116
woocommerce-payments 109,934
tablepress 102,217
honeypot 98,024
astra-addon 94,099
wp-smushit 91,277
coblocks 90,850
duracelltomi-google-tag-manager 90,570
layerslider 89,638
all-in-one-seo-pack 89,398
bb-plugin 87,215
akismet 85,242
premium-addons-for-elementor 84,670
ml-slider 83,018
cleantalk-spam-protect 82,964
mailchimp-for-wp 82,170
megamenu 80,497
woocommerce-gateway-stripe 79,809
jet-engine 77,865
fusion-builder 77,431
ewww-image-optimizer 76,647
wp-pagenavi 76,548
smart-slider-3 76,440

Top 50 Themes

Theme Count
hello-elementor 622,436
Divi 498,224
astra 415,945
flatsome 137,758
Avada 121,597
generatepress 114,990
pub 81,579
oceanwp 80,811
kadence 78,952
enfold 69,087
salient 65,425
twentyseventeen 54,452
bb-theme 53,545
betheme 52,488
twentytwentyfour 52,199
blocksy 51,064
cocoon-master 49,279
dt-the7 45,584
twentytwentyfive 44,893
woodmart 42,252
h4 40,675
neve 38,276
Avada-Child-Theme 36,980
gox 36,267
bridge 31,503
twentytwentyone 30,369
lightning 29,931
twentytwenty 28,844
swell 27,970
bricks 26,528
Impreza 26,114
Newspaper 24,256
twentytwentythree 22,161
epik-redesign 19,213
twentytwentytwo 18,861
uncode 18,616
twentysixteen 17,635
pro 17,627
sydney 16,615
storefront 16,392
Total 14,451
hello-theme-child-master 14,018
factory-templates-4 13,731
themify-ultra 12,993
extendable 12,949
hestia 12,636
yootheme 12,565
yith-wonder 12,277
porto 12,019
twentyfifteen 11,850