Ultimate Taxonomy Manager
php code for custom taxonomy fields (1 post)

  1. himagarwal
    Posted 3 years ago #

    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

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Taxonomy Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.