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

Plugin: taxonomy-images (Used by 2,336 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*c*i*i*.com (WP 6.9.4) F Jul 15, 2026
d*n*e*p*a*t*c*u*g*r*.com F Jul 15, 2026
e*e*a*e.com F Jul 15, 2026
b*o*b*k*b*o*x.com (WP 6.9.4) F Jul 15, 2026
n*v*m*g*z*n*.com F Jul 15, 2026
r*d*o*s*q.in (WP 4.9.8) F Jul 15, 2026
b*n*i*a*t*p*r*t*.com F Jul 15, 2026
d*l*a*m*s*c*h*t*g*a*h*.com (WP 7.0.1) F Jul 15, 2026
d*n*d*k*.com F Jul 15, 2026
i*t*r*a*i*n*l*o*l*v*r*.com F Jul 15, 2026
n*t*i*i*n*q*i*y.com (WP 6.7.1) F Jul 15, 2026
r*d*r*c*c*e.com (WP 7.0.1) C Jul 15, 2026
r*d*r*.com (WP 7.0.1) C Jul 15, 2026
r*d*u*i*p*r*s.com (WP 7.0.1) F Jul 15, 2026
d*l*r*g*r*a*m*n*t*.com F Jul 15, 2026
y*v*r*p.com (WP 6.4.5) F Jul 15, 2026
h*i*a*i*t*a*.com (WP 5.8.4) A Jul 15, 2026
s*o*b*a*d*a*.com F Jul 15, 2026
h*i*h*s*r*o*l*n*s.com F Jul 15, 2026
f*n*s*i*i*s*l*s*i*.com (WP 5.8.1) F Jul 15, 2026
f*o*w*n*e*p*r*e*c*.com (WP 5.8.1) F Jul 15, 2026
t*c*o*o*o.es (WP 6.7.5) F Jul 15, 2026
t*m*m*d.net (WP 7.0.1) F Jul 15, 2026
d*i*y*h*n*.com F Jul 15, 2026
e*s*d*a*i*e*i*.com D Jul 15, 2026
r*v*s*a*i*e*b*a*i*.c*m.br F Jul 15, 2026
d*n*z*n*a*i*a*o*.com (WP 5.1.10) F Jul 15, 2026
r*d*a*e*a*a*.com D Jul 15, 2026
s*i*r*c*i*e.com C Jul 15, 2026
t*a*e*s*i*h*t*r*h*p.com F Jul 15, 2026
w*s*e.nl (WP 6.8.5) F Jul 15, 2026
s*c*h*m*u*.com (WP 5.4.19) F Jul 15, 2026
r*m*t*w*r*u*r*i*e.com (WP 7.0.1) F Jul 15, 2026
m*t*u*e*r*p*.com (WP 6.8.3) F Jul 15, 2026
t*a*e*m*r*e*i*g*o*l*c*i*e.com (WP 7.0) D Jul 15, 2026
e*m*n*e*l*-*o*b*c.com F Jul 15, 2026
m*t*i*b*y*e*l.com A Jul 15, 2026
m*t*i*-*a*i*e*.com F Jul 15, 2026
s*o*l*n*c*s*n*.org F Jul 15, 2026
s*m*e*c*t*o*i*.org (WP 7.0.1) F Jul 15, 2026
d*w*a*y.org (WP 7.0.1) D Jul 14, 2026
n*i*l*.c*m.br F Jul 14, 2026
l*x*r*h*m*t*u*.net (WP 5.8.1) F Jul 14, 2026
k*a*e*g*.com F Jul 14, 2026
n*e*o.com F Jul 14, 2026
r*l*g*o*l*n*.com (WP 5.2.21) F Jul 14, 2026
a*e*i*p*-*s.com A Jul 14, 2026
k*t*i*u*e.com F Jul 14, 2026
o*o*l*n*e*g*d.ru F Jul 14, 2026
k*-*r*b*t*.com F Jul 14, 2026
s*o*k*a*e*.com (WP 7.0) F Jul 14, 2026
s*n*-*n*e*n*t*o*a*.com (WP 5.4.4) A Jul 14, 2026
r*l*a*c*f*a.com (WP 7.0.1) F Jul 14, 2026
d*i*o*u*p*y.com F Jul 14, 2026
s*n*r*t*u*s.c*m.mx F Jul 14, 2026
s*i*h*s*n*i*.com D Jul 14, 2026
e*h*m*a*e*l*h.com C Jul 14, 2026
r*c*p*b*y.com B Jul 14, 2026
b*d*l*f*s*r*e*n.com D Jul 14, 2026
b*i*e*o*8.co (WP 7.0) F Jul 14, 2026
m*t*n*r*b*r*s.com (WP 6.9.4) F Jul 14, 2026
h*a*t*y*i*i*g*a*k*t.com F Jul 14, 2026
i*f*b*i*d*r*d*i*s.fr (WP 3.6.1) F Jul 14, 2026
a*p*a*e*c*l*r*n*.net (WP 6.9.4) B Jul 14, 2026
o*t*p*d*a*u*i*a*.com D Jul 14, 2026
d*e*g*n*e*i*g.com F Jul 14, 2026
r*c*e*u.com (WP 5.3.15) A Jul 14, 2026
n*p*b*o.com (WP 7.0.1) F Jul 14, 2026
a*k*r*g*a*.com (WP 7.0.1) F Jul 14, 2026
y*c*t*r*v*l*l*b.com F Jul 14, 2026
n*b*t*.com D Jul 14, 2026
t*r*i*e.com F Jul 14, 2026
a*e.c*m.vn (WP 6.7.2) F Jul 14, 2026
t*a*g.am (WP 7.0.1) F Jul 14, 2026
b*c*m*h*s*r*e*y.com C Jul 14, 2026
b*c*l*f*m*g*z*n*.com (WP 5.8.1) F Jul 14, 2026
b*c*d*s*g*m*g*z*n*.com (WP 5.8.1) F Jul 14, 2026
r*b*c*a*o.com (WP 5.8.13) F Jul 14, 2026
y*o*d*a.com (WP 6.9.4) F Jul 14, 2026
r*a*t*t*u*t*u*d.com F Jul 14, 2026
a*i*i*t*s.com F Jul 14, 2026
a*d*e*a*t*o*a*.com F Jul 14, 2026
h*a*t*f*l*y*o*.com (WP 6.8.5) B Jul 14, 2026
r*h*b*t*l*c*s.com F Jul 14, 2026
b*a*r*n*a*n*s*v*l*e.com F Jul 14, 2026
r*h*m*t.com (WP 7.0) F Jul 14, 2026
a*c*p*t*l*n*o*i*i*r*a.com D Jul 14, 2026
p*t*.ca (WP 3.5.1) F Jul 14, 2026
z*e*a*s*i*r*s.com (WP 7.0.1) F Jul 14, 2026
y*r*l*y*e*.me (WP 5.2.24) F Jul 14, 2026
p*l*r*s*e*b*u*n*.c*m.au F Jul 14, 2026
p*w*r*d*g*.c*m.au F Jul 14, 2026
w*r*q*i*.c*m.au F Jul 14, 2026
a*e*i*a*t*x*a*e*n*t*t*t*.com (WP 6.7.2) F Jul 14, 2026
h*o*g*n*t*u*i*t.vn F Jul 14, 2026
n*s*e*e*o*.com (WP 7.0.1) F Jul 14, 2026
o*l*a*t*s.com (WP 7.0.1) F Jul 14, 2026
x*e*t*o*e*i*n*s*.com F Jul 14, 2026
x*e*t*i*n*s*.com F Jul 14, 2026
n*p*n*.com (WP 4.5.33) F Jul 14, 2026

Top 50 Plugins

Plugin Count
elementor 1,773,066
contact-form-7 1,754,699
elementor-pro 1,053,398
woocommerce 816,868
revslider 609,950
jetpack 456,151
js_composer 420,819
wp-rocket 341,566
essential-addons-for-elementor-lite 265,266
complianz-gdpr 257,980
gravityforms 257,686
google-site-kit 232,621
cookie-law-info 228,902
instagram-feed 225,266
sitepress-multilingual-cms 210,874
header-footer-elementor 207,407
google-analytics-for-wordpress 206,188
bluehost-wordpress-plugin 192,588
elementskit-lite 180,622
gutenberg 167,311
cookie-notice 149,235
litespeed-cache 143,547
gtranslate 125,193
wpforms-lite 124,272
the-events-calendar 122,579
astra-sites 113,631
gutenberg-core 113,508
popup-maker 110,000
woocommerce-payments 109,709
tablepress 102,202
honeypot 97,891
astra-addon 93,947
wp-smushit 91,090
duracelltomi-google-tag-manager 90,451
coblocks 89,789
layerslider 89,525
all-in-one-seo-pack 89,300
bb-plugin 87,066
akismet 85,166
premium-addons-for-elementor 84,433
ml-slider 83,034
cleantalk-spam-protect 82,813
mailchimp-for-wp 82,012
megamenu 80,374
woocommerce-gateway-stripe 79,700
jet-engine 77,827
fusion-builder 77,281
ewww-image-optimizer 76,638
wp-pagenavi 76,523
smart-slider-3 76,327

Top 50 Themes

Theme Count
hello-elementor 621,543
Divi 497,327
astra 415,116
flatsome 137,795
Avada 121,363
generatepress 114,678
oceanwp 80,569
pub 79,286
kadence 78,818
enfold 68,928
salient 65,362
twentyseventeen 54,403
bb-theme 53,484
betheme 52,451
twentytwentyfour 52,191
blocksy 51,007
cocoon-master 49,241
dt-the7 45,528
twentytwentyfive 44,925
woodmart 42,693
h4 39,561
neve 38,220
Avada-Child-Theme 36,954
gox 36,252
bridge 31,437
twentytwentyone 30,343
lightning 29,939
twentytwenty 28,835
swell 27,982
bricks 26,516
Impreza 26,104
Newspaper 24,234
twentytwentythree 22,139
epik-redesign 19,181
twentytwentytwo 18,831
uncode 18,592
twentysixteen 17,623
pro 17,621
sydney 16,585
storefront 16,374
Total 14,410
hello-theme-child-master 14,004
factory-templates-4 13,730
themify-ultra 12,971
extendable 12,866
hestia 12,599
yootheme 12,547
yith-wonder 12,223
porto 11,980
twentyfifteen 11,835