query.get_post_terms
/
Database /
query.get_post_terms
By Amit Singh. Posted on
Title |
: |
query.get_post_terms |
Purpose |
: |
Retrieve the terms for a post |
Syntax |
: |
|
[query.get_post_terms post_id OR taxonomy OR orderby OR order OR fields/] |
|
Input Parameters |
: |
post_id, taxonomy, orderby, order, fields |
Return Value |
: |
An array of taxonomy terms, or empty array if no terms are found |
Example 1 |
: |
Code |
: |
|
[query.get_post_terms post_id="674649" taxonomy="interest" set="module.taxonomy_data" /] |
|
Output |
: |
An array of term objects on success or empty array if no terms were found. Error if taxonomy doesn’t exist. |
|
Last Modified By Pravin Kamble.