get_the_terms( ... )

Retrieves the terms of the taxonomy that are attached to the post.

Parameters:
  • $post int | WP_Post
  • $taxonomy string