Make WordPress Core

Opened 8 years ago

Last modified 7 months ago

#43835 new feature request

Add thumbnail to category (like to posts)

Reported by: tazotodua's profile tazotodua Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: needs-patch 2nd-opinion dev-feedback
Focuses: Cc:

Description

Was it discusses ever, to integrate thumbnail support for categories too?

This plugin adds the feature to WP to add thumbnails (feature images) to categories and use functions:

has_category_thumbnail();
get_the_category_thumbnail();
....

However, it may be nice to have these features built-in.

Change History (5)

#1 follow-up: @dingo_bastard
8 years ago

  • Keywords needs-patch 2nd-opinion dev-feedback added

The category screen would have to be changed (added cat meta for thumbnail), plus a way to add it to custom taxonomies would have to be implemented as well.

You can add a patch if you want to, but I don't think this will be implemented, since term meta was added back in 4.4, and it wasn't added then...

#2 in reply to: ↑ 1 @tazotodua
8 years ago

Replying to dingo_bastard:

term meta was added back in 4.4, and it wasn't added then...

sorry, i cant understand well, what does this mean ("..it was added and it wasnt added then..")?

#3 follow-up: @danieltj
8 years ago

  • Component changed from General to Taxonomy

I think what @dingo_bastard means is term meta data was implemented, but term images were not part of the meta that was included, if I'm interpreting that correctly. I personally think that this isn't a highly sought after feature and that if it is needed by someone, a plugin is available to those that want it.

#4 in reply to: ↑ 3 @dingo_bastard
8 years ago

Replying to danieltj:

I think what @dingo_bastard means is term meta data was implemented, but term images were not part of the meta that was included, if I'm interpreting that correctly. I personally think that this isn't a highly sought after feature and that if it is needed by someone, a plugin is available to those that want it.

Precisely that :D Sorry I wasn't clear enough...

#5 @cr0ybot
7 months ago

For something like this to be added, I think taxonomies would need a supports argument like custom post type registrations have, as well as other APIs that come with it:

  • add_taxonomy_support()
  • remove_taxonomy_support()
  • get_all_taxonomy_supports()
  • taxonomy_supports()
  • get_taxonomies_by_support()

It's possible that a theme support might have to be added as well. This is because there are undoubtedly countless sites out there with their own implementation of term featured/thumbnail images, some of which may be using the same meta key that core might implement.

Note: See TracTickets for help on using tickets.