How do I get terms as a list for a specific post?

wp_get_object_terms( $post_id, $taxonomy )

will return an array of the term objects for that post of that taxonomy. $post_id can also be an array of ids (this will return all terms attached to any post in the array), and $taxonomy can also be an array of taxonomies.

Leave a Comment