get_the_taxonomies


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

Parameters:
  • (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. }
Returns:
  • (array) List of taxonomies.
Defined at:

Description

Retrieve 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

get_taxonomies, the_taxonomies, get_post_taxonomies, get_attachment_taxonomies, get_object_taxonomies

Top Google Results

User discussions

wpseek mobile