filter: (string) (optional) default is raw or no WordPress defined filter will applied. || Default: ‘raw’
Return Value
:
Term Row (object or array) from database. Will return false if taxonomy does not exist or term was not found. Otherwise returns object (by default) or array of fields depending on output parameter
Example 1
:
Code
:
XHTML
1
2
3
4
5
[query.get_term_by
field='name'
value='additional courses'
taxonomy='category'
/]
Output
:
Description
:
The above example code will output terms matching field name=additional courses whose taxonomy is category.