Ga naar de inhoud
WordPress.org

Nederlands

  • Thema’s
  • Plugins
  • Nieuws
    • Documentatie
    • Forums
  • Over
    • Vertaalproces
    • Stijlgids
    • Onze community
    • Meetups
    • WordCamps
  • Contact
  • WordPress downloaden
WordPress downloaden
WordPress.org

Plugin Directory

WP Term Images

  • Dien een plugin in
  • Mijn favorieten
  • Login
  • Dien een plugin in
  • Mijn favorieten
  • Login

WP Term Images

Door John James Jacoby
Download
  • Details
  • Beoordelingen
  • Installatie
  • Ontwikkeling
Ondersteuning

Beschrijving

Images for categories, tags, and other taxonomy terms

WP Term Images allows users to assign images to any visible category, tag, or taxonomy term using the media library, providing a customized look for their taxonomies.

Also checkout

  • WP Chosen
  • WP Pretty Filters
  • WP Event Calendar
  • WP Media Categories
  • WP Term Order
  • WP Term Authors
  • WP Term Colors
  • WP Term Icons
  • WP Term Visibility
  • WP User Activity
  • WP User Avatars
  • WP User Groups
  • WP User Profiles

Schermafbeeldingen

Category Images
Category Images
Edit Category Image
Edit Category Image
Choose an Image
Choose an Image

Installatie

  • Download and install using the built in WordPress plugin installer.
  • Activate in the “Plugins” area of your admin by clicking the “Activate” link.
  • No further setup or configuration is necessary.

FAQ

Does this plugin depend on any others?

No. Not since WordPress 4.4.

Does this create new database tables?

No. There are no new database tables with this plugin.

Does this modify existing database tables?

No. All of WordPress’s core database tables remain untouched.

How do I get the image for a term?

With WordPress’s get_term_meta() function

// image id is stored as term meta
$image_id = get_term_meta( 7, 'image', true );

// image data stored in array, second argument is which image size to retrieve
$image_data = wp_get_attachment_image_src( $image_id, 'full' );

// image url is the first item in the array (aka 0)
$image = $image_data[0];

if ( ! empty( $image ) ) {
    echo '<img src="' . esc_url( $image ) . '" />';
}

The attachment ID is also exposed as the term’s image metadata in the
WordPress REST API. To keep it out of REST responses, return false from the
wp_term_image_show_in_rest filter.

Can I limit the taxonomies that use term images?

Yes. Filter the visible taxonomies after discovery and return only the ones
that should use the image interface:

add_filter( 'wp_term_image_allowed_taxonomies', function( $taxonomies ) {
    return array( 'category', 'post_tag' );
} );

Where can I get support?

  • Basic: https://wordpress.org/support/plugin/wp-term-images/

Waar kan ik documentatie vinden?

https://github.com/stuttter/wp-term-images/wiki

Beoordelingen

Simple and less intrusive

Alvaro Gois dos Santos 23 januari 2021
It's simple and less intrusive than other plugins that do the same. It blends better with WordPress UI. It doesn't show anything in the frontend if the correct code isn't added to the theme, something like this I guess: <?php $taximg_id = get_queried_object()->term_id; // image id is stored as term meta $image_id = get_term_meta( $taximg_id, 'image', true ); // image data stored in array, second argument is which image size to retrieve $image_data = wp_get_attachment_image_src( $image_id, 'full' ); // image url is the first item in the array (aka 0) $image = $image_data[0]; if( $image ) { echo "<img src=" . $image . " class='term-image'>"; } ?>

Plugin is out of date, don’t use

joopon 23 mei 2019
Not compatible with Woocommerce 3.6.3. All taxonomies disappear.

Just what I need

Knut Sparhell 1 mei 2019
Excellent! Works like a charm. Very useful for building nice term pages.

Thank you

dimitris33 2 juni 2017
Just tested with the latest version of WP.

Best Plugin For Uploading Term Images

Michelle 29 april 2017
Used this plugin to upload images for each category and child category using get_terms to display the images in a template.

Thanks!

wellbeingtips 27 januari 2017
keep up the good job!
Lees alle 10 beoordelingen

Bijdragers & ontwikkelaars

“WP Term Images” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers
  • John James Jacoby
  • Stuttter

“WP Term Images” is vertaald in 10 localen. Dank voor de vertalers voor hun bijdragen.

Vertaal “WP Term Images” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

[2.2.0] – 2026-09-16

  • Expose image attachment IDs through term metadata in the WordPress REST API
  • Allow sites to restrict the taxonomies that use the term-image interface
  • Add enforceable WordPress and PHP compatibility coding standards

[2.1.3] – 2026-09-16

  • Require WordPress 6.4 or newer

[2.1.2] – 2026-09-14

  • Republish the verified package through corrected WordPress.org distribution automation

[2.1.1] – 2026-09-14

  • Refresh release packaging and distribution metadata

[2.1.0] – 2026-09-13

  • Preserve existing images when programmatic term updates omit the image field
  • Avoid intercepting unrelated term-meta sorting queries
  • Require PHP 7.4 and add automated regression coverage

[2.0.0] – 2019-05-30

  • Update base class

[1.0.0] – 2017-01-16

  • Stability!
  • Fix text domains
  • Simplify some JavaScript
  • Handle more JavaScript edge-cases

[0.3.1] – 2016-07-13

  • Fix regular edits

[0.3.0] – 2016-05-27

  • Fix quick-edits
  • Update WP Term Meta UI dependency to 0.1.9

[0.2.0] – 2016-01-07

  • Fix new-term form action hi-jacking
  • Update WP Term Meta UI dependency to 0.1.4

[0.1.0] – 2015-11-09

  • Eerste release

Meta

  • Versie 2.2.0
  • Laatst geüpdatet 4 weken geleden
  • Actieve installaties 2.000+
  • WordPress versie 6.4 of nieuwer
  • Getest t/m 7.1.4
  • PHP versie 7.4 of nieuwer
  • Talen

    Chinese (Taiwan), English (UK), English (US), German, Japanese, Norwegian (Bokmål), Polish, Portuguese (Portugal), Spanish (Chile), Spanish (Spain) en Swedish.

    Vertaal in je eigen taal

  • Tags
    imageimagesmetadatataxonomyterm
  • Geavanceerde weergave

Waarderingen

4.6 van 5 sterren.
  • 9 5 sterren beoordelingen 5 sterren 9
  • 0 4 sterren beoordelingen 4 sterren 0
  • 0 3 sterren beoordelingen 3 sterren 0
  • 0 2 sterren beoordelingen 2 sterren 0
  • 1 1 ster beoordeling 1 ster 1

Je beoordeling

Bekijk alle beoordelingen

Bijdragers

  • John James Jacoby
  • Stuttter

Ondersteuning

Iets te melden? Hulp nodig?

Het supportforum bekijken

Doneren

Wil je de groei van deze plugin ondersteunen?

Doneer aan deze plugin

  • Over
  • Nieuws
  • Hosting
  • Privacy
  • Showcase
  • Thema's
  • Plugins
  • Patronen
  • Leren
  • Ondersteuning
  • Ontwikkelaars
  • WordPress.tv ↗
  • Raak betrokken
  • Evenementen
  • Doneren ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Nederlands

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Bezoek ons X (voorheen Twitter) account
  • Bezoek ons Bluesky account
  • Bezoek ons Mastodon account
  • Bezoek ons Threads account
  • Onze Facebook pagina bezoeken
  • Bezoek ons Instagram account
  • Bezoek ons LinkedIn account
  • Bezoek ons TikTok account
  • Bezoek ons YouTube kanaal
  • Bezoek ons Tumblr account
Code is poëzie.