Title: php code for custom taxonomy  fields
Last modified: August 20, 2016

---

# php code for custom taxonomy fields

 *  [himagarwal](https://wordpress.org/support/users/himagarwal/)
 * (@himagarwal)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/php-code-for-custom-taxonomy-fields/)
 * I have created custom taxonomy field named “store-image” (image field) and “store-
   heading” (text field)
 * I wanted to know what php code should be used to get the value of these custom
   taxonomy field in a php file.
 * I went through this post [http://wordpress.org/support/topic/plugin-ultimate-taxonomy-manager-categoriess-custom-fields-via-php-not-from-shortcodes?replies=5#post-2987333](http://wordpress.org/support/topic/plugin-ultimate-taxonomy-manager-categoriess-custom-fields-via-php-not-from-shortcodes?replies=5#post-2987333)
 * where it says to use:
 * echo get_metadata(‘taxonomy’, $taxonomy_term_id, ‘link’, TRUE);
 * where $taxonomy_term_id is the correct ID of existing taxonomy term
 * but, I don’t understand what is taxonomy_term_id and where can I find it.
 * And is the above php code correct? Can above code be used for both image and 
   text field tye.
 * Is it possible to use taxonomy name instead of taxonomy term id?
 * Any help in this matter will be appreciated.
 * Thanks in advance.
 * [http://wordpress.org/extend/plugins/ultimate-taxonomy-manager/](http://wordpress.org/extend/plugins/ultimate-taxonomy-manager/)

The topic ‘php code for custom taxonomy fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-taxonomy-manager.svg)
 * [Ultimate Taxonomy Manager](https://wordpress.org/plugins/ultimate-taxonomy-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-taxonomy-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-taxonomy-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-taxonomy-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-taxonomy-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-taxonomy-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [himagarwal](https://wordpress.org/support/users/himagarwal/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/php-code-for-custom-taxonomy-fields/)
 * Status: not resolved