PHPackages                             doiftrue/wp\_term\_image - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. doiftrue/wp\_term\_image

ActiveLibrary[File &amp; Storage](/categories/file-storage)

doiftrue/wp\_term\_image
========================

Upload images functianality for Wordpress taxonomy terms. In admin panel.

v3.5.2(3y ago)6412MITPHPPHP &gt;=5.6.0

Since Feb 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/doiftrue/Term_Meta_Image)[ Packagist](https://packagist.org/packages/doiftrue/wp_term_image)[ Docs](https://wp-kama.ru/7686)[ RSS](/packages/doiftrue-wp-term-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Thumbnails for WordPress taxonomy elements
------------------------------------------

[](#thumbnails-for-wordpress-taxonomy-elements)

Adds the ability to set thumbnails for WordPress terms (elements of taxonomies), both built-in (tags, categories) and custom ones.

Read more at this link:

[![](https://camo.githubusercontent.com/351ac5999e8ce98ad399231dd7e8d5ee87aeae0c9ff0bd438904d2cecd77f974/68747470733a2f2f77702d6b616d612e72752f77702d636f6e74656e742f75706c6f6164732f323031362f31322f6d696e696174797572612d646c79612d7465726d696e612d736f7a64616e69652e706e67)](https://camo.githubusercontent.com/351ac5999e8ce98ad399231dd7e8d5ee87aeae0c9ff0bd438904d2cecd77f974/68747470733a2f2f77702d6b616d612e72752f77702d636f6e74656e742f75706c6f6164732f323031362f31322f6d696e696174797572612d646c79612d7465726d696e612d736f7a64616e69652e706e67)

Usage Example
-------------

[](#usage-example)

### Connecting

[](#connecting)

Include `WP_Term_Image.php` php file:

```
require_once __DIR__ . '/WP_Term_Image.php';
```

Or use the Composer:

```
composer require doiftrue/wp_term_image
```

### Initialization

[](#initialization)

Basic without parameters passing:

```
add_action( 'admin_init', [ \Kama\WP_Term_Image::class, 'init' ] );
```

With parameters passing:

```
add_action( 'admin_init', 'kama_wp_term_image' );

function kama_wp_term_image(){

	// Let's specify for which taxonomy it is necessary to set images.
	// It is possible not to specify, then the possibility will be automatically added for all public taxonomies.

	\Kama\WP_Term_Image::init( [
		'taxonomies' => [ 'post_tag' ],
	] );
}
```

### Get data in the theme template

[](#get-data-in-the-theme-template)

An example of getting the ID of an attachment image of a term:

```
$image_id = \Kama\WP_Term_Image::get_image_id( $term_id );

// OR
$image_id = get_term_meta( $term_id, '_thumbnail_id', 1 );
```

Now we can use the ID to get the URL of the attachment:

```
$image_url = wp_get_attachment_image_url( $image_id, 'thumbnail' );
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~42 days

Total

7

Last Release

1387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a5b59537b7030cbdd84442d082f9ae993922622afae63296809ecc528d672dc?d=identicon)[doiftrue](/maintainers/doiftrue)

---

Top Contributors

[![doiftrue](https://avatars.githubusercontent.com/u/15121552?v=4)](https://github.com/doiftrue "doiftrue (24 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/doiftrue-wp-term-image/health.svg)

```
[![Health](https://phpackages.com/badges/doiftrue-wp-term-image/health.svg)](https://phpackages.com/packages/doiftrue-wp-term-image)
```

###  Alternatives

[humanmade/network-media-library

Network Media Library provides a central media library that's shared across all sites on the Multisite network.

29644.8k](/packages/humanmade-network-media-library)[ilab/ilab-media-tools

Tools for cropping, uploading to S3, serving through Imgix

119102.7k1](/packages/ilab-ilab-media-tools)[wptt/webfont-loader

Locally host webfonts.

12651.7k2](/packages/wptt-webfont-loader)[dre1080/wp-graphql-upload

Adds file upload support to the WP GraphQL Plugin.

3854.0k](/packages/dre1080-wp-graphql-upload)[mcguffin/acf-dropzone

Drag and drop file upload for ACF-Fields.

339.2k](/packages/mcguffin-acf-dropzone)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
