query.get_post_terms

/ Database / query.get_post_terms

Title : query.get_post_terms
Purpose : Retrieve the terms for a post
Syntax :
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 :
Output :  An array of term objects on success or empty array if no terms were found. Error if taxonomy doesn’t exist.

 

Categories
Most Popular

Leave a Reply

Your email address will not be published.