query.get_post_terms

/ Database / query.get_post_terms

Retrieve the terms for a post

Parameters supported : post_id, taxonomy, orderby, order, fields

It returns: An array of taxonomy terms, or empty array if no terms are found

Syntax:

[query.get_post_terms post_id OR taxonomy OR orderby OR order OR fields/]


Example:

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *