It returns: Returns 0 or NULL if the term does not exist. Returns the term ID if no taxonomy was specified and the term exists. Returns an array if the parent exists
Example 1
:
Code
:
XHTML
1
2
[query.term_existsterm="{template.term_slug}"
taxonomy="taxonomy_name"set="template.term_id"/]
Output
:
Returns the term ID
Description
:
Check if a given term exists and return the term ID, a term array, or 0 (false) if the term doesn’t exist
Parameters supported : term, taxonomy
It returns: Returns 0 or NULL if the term does not exist. Returns the term ID if no taxonomy was specified and the term exists. Returns an array if the parent exists.