key: The meta key to retrieve. If no key is provided, fetches all metadata for the term.
single: (bool) (Optional) Whether to return a single value. If false, an array of all values matching the $term_id/$key pair will be returned. Default: false.
Return Value
:
It returns: (mixed) If single is false, an array of metadata values. If single is true, a single metadata value
Example 1
:
Code
:
XHTML
1
2
3
4
[query.get_term_meta
term_id="104"
set="module.term_val"
/]
Output
:
Description
:
The above example code will output terms matching the term_id. As single param is not passed it has return array of single metadata value.