https://github.com/horttcore/term-thumbnails
Post Thumbnails for WordPress Terms
https://github.com/horttcore/term-thumbnails
post-thumbnails taxonomy term-thumbnails wordpress wordpress-terms
Last synced: 21 days ago
JSON representation
Post Thumbnails for WordPress Terms
- Host: GitHub
- URL: https://github.com/horttcore/term-thumbnails
- Owner: Horttcore
- License: gpl-2.0
- Created: 2014-06-19T06:44:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T12:44:18.000Z (over 5 years ago)
- Last Synced: 2025-04-04T23:29:25.443Z (24 days ago)
- Topics: post-thumbnails, taxonomy, term-thumbnails, wordpress, wordpress-terms
- Language: PHP
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Term Thumbnails
===============Post Thumbnails for WordPress Terms
## Installation
* Put the plugin file in your plugin directory and activate it in your WP backend.
* Go to any term page and add images## Screenshots
### Term listing
[](https://raw.github.com/Horttcore/Term-Thumbnails/master/screenshot-1.png)### Term listing with image
[](https://raw.github.com/Horttcore/Term-Thumbnails/master/screenshot-2.png)### Term edit page
[](https://raw.github.com/Horttcore/Term-Thumbnails/master/screenshot-3.png)### Term edit page with image
[](https://raw.github.com/Horttcore/Term-Thumbnails/master/screenshot-4.png)## Language Support
* english
* german## Template tags
* `get_term_thumbnail_id( $term_id )`
* `has_term_thumbnail( $term_id )`
* `the_term_thumbnail( $size, $attr )`
* `get_term_thumbnail( $term_id, $size, $attr )`## Frequently Asked Questions
### How do I remove thumbnail support from a specific taxonomy
For removing support for categories put this in your functions.php
`add_filter( 'category-has-thumbnails', '__return_false' );`## Hooks
### Filters
* `term-thumbnail-taxonomies` - Taxonomies that should support term thumbnails; expects an array with taxonomies
* `$taxonomy-has-thumbnails` - Remove term thumbnail support for taxonomy; expects bool value## Changelog
### v2.1.0
* Added: Composer support
### v2.0.1
* Fix: Remove warning
### v2.0.0
* Switch from options to term meta structure
### v1.0.2
* Fix: Missing term images for custom taxonomies
### v1.0.1
* Added: Screenshots
* Added: readme.txt
* Enhancement: Security improvements
* Fix: Typo on term edit page### v1.0
* Initial release