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.
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.