How to add images to taxonomies?

Starting from WordPress 4.4, you can use add_term_meta function to store metadata for a term. This is basically a key-value pair information which is stored in wp_termmeta table.

Original Answer(Prior to WP 4.4)

WordPress doesn’t have the option to add extra information to taxonomies. There isn’t any taxonomy_meta table. So, you have two options.

  • Create a new custom table and save the extra information(image link) there.
  • You can also use options table to store the information.

You can follow this post of as it shows how to implement what you are trying to do: http://en.bainternet.info/wordpress-taxonomies-extra-fields-the-easy-way/

Leave a Comment