get_the_taxonomies ( $post = 0, $args = array() )

  • (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
  • (array) args { Optional. Arguments about how to format the list of taxonomies. Default empty array. @type string $template Template for displaying a taxonomy label and list of terms. Default is "Label: Terms." @type string $term_template Template for displaying a single term in the list. Default is the term name linked to its archive. }
  • (string[]) List of taxonomies.
Defined at:


Retrieves all taxonomies associated with a post.This function can be used within the loop. It will also return an array of the taxonomies with links to the taxonomy and name.

Related Functions

the_taxonomies, get_taxonomies, get_post_taxonomies, get_attachment_taxonomies, get_object_taxonomies

Top Google Results

User discussions

wpseek mobile