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

Plugin: taxonomy-images (Used by 2,334 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
v*m*g*n*i*e.com (WP 5.8.1) F Jul 3, 2026
v*h*m*d*s*g*w*e*.com (WP 5.8.1) F Jul 3, 2026
b*u*r*i*o*v*e*.com (WP 6.7.5) F Jul 3, 2026
e*p*r*i*d*s*r*s*r*i*e*.com (WP 4.8.28) F Jul 3, 2026
d*e*i*e*a*.org (WP 6.9.4) F Jul 3, 2026
i*d*a*c*f*e*c*l*u*e.com F Jul 3, 2026
i*d*a*a*o*i*m*n*h*y.com (WP 5.8.1) F Jul 3, 2026
v*i*c*e*e*e*a*o*e.fr D Jul 3, 2026
m*l*d*j*.hr (WP 6.9.4) F Jul 3, 2026
g*l*e*i*m*d*p*.com C Jul 3, 2026
s*y*z*k*.com (WP 7.0) F Jul 3, 2026
a*h*e*i*n.com F Jul 3, 2026
i*s*f*c*o*c*.fr (WP 5.0.3) F Jul 3, 2026
v*s*w*b*n*i*.com F Jul 3, 2026
c*m*c*i*e*f*.com (WP 6.9.4) F Jul 3, 2026
h*n*m*a.vn (WP 6.6.3) A Jul 3, 2026
k*n*k*n*y*.c*m.sg F Jul 3, 2026
n*k*i*n*t*t*h*s.com F Jul 3, 2026
d*g*n*n*v*r*i*y.e*u.mm F Jul 3, 2026
a*a*a*t*u*i*t*r*o*s.com F Jul 3, 2026
v*n*e*e*b*e*i*g*n.nl F Jul 3, 2026
a*a*u*a*.com (WP 6.6.5) F Jul 3, 2026
l*b*e*a*.com (WP 7.0) F Jul 3, 2026
a*u*c*p*t*l.org F Jul 3, 2026
g*a*l*n*p*o*e*t*e*.ie (WP 7.0) F Jul 3, 2026
s*v*r*e*r*i*.com (WP 5.8.1) F Jul 3, 2026
b*t*i*d*s*r*a*s.com A Jul 3, 2026
c*m*l*x*w*a*e*s.org F Jul 3, 2026
s*v*u*s*s*.com F Jul 3, 2026
l*a*t*c*u*d*o.com F Jul 3, 2026
l*a*t*u*h*r*t*.com A Jul 3, 2026
i*c*t*l*g*e*e.com (WP 5.4.2) A Jul 3, 2026
i*b*o*i*g*y*n*i*h.com A Jul 3, 2026
n*t*s*e*i*e.es (WP 3.3.2) F Jul 3, 2026
a*e*s*a*o*o*d*.it (WP 7.0) F Jul 3, 2026
v*n*a*e*u*t*o*s.com D Jul 3, 2026
i*a*i*o*r*i*.com (WP 6.9.4) F Jul 2, 2026
u*2*l*y.fr (WP 6.9.4) F Jul 2, 2026
a*d*x.fi F Jul 2, 2026
i*a*r*t*b*.com (WP 7.0) F Jul 2, 2026
v*n*s*i*g*c*a*c*t*.com F Jul 2, 2026
v*n*s*i*g*c.com F Jul 2, 2026
g*t*n*i*.com F Jul 2, 2026
v*n*l*a*a*t*.com F Jul 2, 2026
v*n*l*a*s*e*c*.com F Jul 2, 2026
m*r*i*s.be (WP 7.0) F Jul 2, 2026
m*l*i*i*b*n*a*.com (WP 6.9.4) F Jul 2, 2026
p*d*o*a*.com (WP 7.0) F Jul 2, 2026
a*r*c*i*e*a*s*r.com (WP 6.8.3) A Jul 2, 2026
c*u*c*l*p*r*v*l.c*m.au F Jul 2, 2026
s*s*r*i*e*o*i*t*c*.com F Jul 2, 2026
s*s*r*i*e.com F Jul 2, 2026
s*a*t*s*m*t*r*n*t*c*n*l*g*.de (WP 6.4.8) F Jul 2, 2026
d*b.center F Jul 2, 2026
r*v*d*g*t*l.c*.uk D Jul 2, 2026
m*r*h*n*u*t*i*s.c*.uk (WP 6.9.4) F Jul 2, 2026
b*r*h*a*o*s*i*.com (WP 5.2.24) F Jul 2, 2026
s*a*.c*m.mx (WP 6.8.3) F Jul 2, 2026
c*n*r*l*e*a*g*r*e*s.com F Jul 2, 2026
s*y*h*l*e*m*d*p*.com F Jul 2, 2026
r*m*n*o*n*.ir (WP 7.0) F Jul 2, 2026
k*n*l*i*e*n*r.de (WP 6.6.1) F Jul 2, 2026
s*x*l*s*r*.com D Jul 2, 2026
a*g*s.com F Jul 2, 2026
s*n*k.com (WP 6.9.4) B Jul 2, 2026
b*f.me (WP 6.9.4) B Jul 2, 2026
w*r*h*r.com (WP 6.9.4) B Jul 2, 2026
l*a*m*g*z*n*s.com F Jul 2, 2026
l*a*l*f*p*d*a*t.com F Jul 2, 2026
j*p*.org F Jul 2, 2026
d*s*u*d*.com F Jul 2, 2026
g*e*o*i*p*i*t*.org (WP 6.7.5) F Jul 2, 2026
v*l*e*.com (WP 6.9.4) F Jul 2, 2026
s*l*a*f*c*a*p*a*t*c*.com C Jul 2, 2026
s*t*s*f*o*s.com (WP 5.4.1) A Jul 2, 2026
i*p*a*t*l*g*a*r*a*z*.com D Jul 2, 2026
n*v*a*a*c*d*.es (WP 7.0) D Jul 2, 2026
a*d*x.se F Jul 2, 2026
g*t*h*s*m*o*t*a*.com (WP 6.7.5) B Jul 2, 2026
g*t*u*t*n*d*p.com F Jul 2, 2026
u*o*i*e*s*l*e.fr (WP 7.0) F Jul 2, 2026
m*e*l*d*u*i*i*a*t*e*i*o*e*.com D Jul 2, 2026
r*m*v*t*.c*m.au (WP 6.9.4) F Jul 2, 2026
p*r*s*e*f.com (WP 7.0) F Jul 2, 2026
l*-*b.com F Jul 2, 2026
p*r*s.com F Jul 2, 2026
p*l*o*t*r*.com (WP 5.4.16) A Jul 2, 2026
s*r*i*g*l*e*y.com (WP 5.4.19) F Jul 2, 2026
c*i*a*o*h*s.com F Jul 2, 2026
s*m*e*k*h*a*a.fi F Jul 2, 2026
p*r*m*d.com D Jul 2, 2026
a*u*c*p*t*l.net F Jul 2, 2026
i*c*a*l*o*g*i*t.vn A Jul 2, 2026
p*v*a*.com F Jul 2, 2026
s*a*i*h*a*a.com (WP 5.8.10) F Jul 2, 2026
i*m*p*t*m.com F Jul 2, 2026
a*s*l*e*.com F Jul 2, 2026
i*m*b*n*t*.com F Jul 2, 2026
s*t*w*r*d.com F Jul 2, 2026
p*h*l*r*.com (WP 4.7.2) F Jul 2, 2026

Top 50 Plugins

Plugin Count
elementor 1,770,670
contact-form-7 1,752,430
elementor-pro 1,052,476
woocommerce 816,098
revslider 609,110
jetpack 455,281
js_composer 420,184
wp-rocket 341,921
essential-addons-for-elementor-lite 264,914
complianz-gdpr 257,462
gravityforms 257,435
google-site-kit 232,555
cookie-law-info 228,544
instagram-feed 224,942
sitepress-multilingual-cms 210,671
header-footer-elementor 206,836
google-analytics-for-wordpress 205,959
bluehost-wordpress-plugin 192,462
elementskit-lite 180,242
gutenberg 167,162
cookie-notice 148,974
litespeed-cache 143,534
gtranslate 124,906
wpforms-lite 123,932
the-events-calendar 122,493
astra-sites 113,329
popup-maker 109,786
woocommerce-payments 109,450
gutenberg-core 106,504
tablepress 102,169
honeypot 97,746
astra-addon 93,790
wp-smushit 90,919
duracelltomi-google-tag-manager 90,369
layerslider 89,411
all-in-one-seo-pack 89,154
coblocks 87,767
bb-plugin 87,000
akismet 85,051
premium-addons-for-elementor 84,446
ml-slider 83,072
cleantalk-spam-protect 82,690
mailchimp-for-wp 81,877
megamenu 80,262
woocommerce-gateway-stripe 79,553
jet-engine 77,858
fusion-builder 77,168
ewww-image-optimizer 76,597
wp-pagenavi 76,492
smart-slider-3 76,197

Top 50 Themes

Theme Count
hello-elementor 621,008
Divi 496,644
astra 414,290
flatsome 137,871
Avada 121,202
generatepress 115,012
oceanwp 80,398
kadence 78,936
pub 74,605
enfold 68,814
salient 65,240
twentyseventeen 54,376
bb-theme 53,465
betheme 52,425
twentytwentyfour 52,233
blocksy 50,857
cocoon-master 49,213
dt-the7 45,470
twentytwentyfive 44,929
woodmart 42,965
neve 38,166
h4 37,144
Avada-Child-Theme 36,929
gox 36,231
bridge 31,369
twentytwentyone 30,344
lightning 29,931
twentytwenty 28,789
swell 27,967
bricks 26,477
Impreza 26,084
Newspaper 24,190
twentytwentythree 22,123
epik-redesign 19,169
twentytwentytwo 18,776
uncode 18,532
pro 17,631
twentysixteen 17,610
sydney 16,563
storefront 16,339
Total 14,409
hello-theme-child-master 14,016
factory-templates-4 13,732
themify-ultra 12,964
extendable 12,794
hestia 12,599
yootheme 12,534
yith-wonder 12,153
porto 11,942
twentyfifteen 11,851