WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get the taxonomies

Description

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

Usage

 <?php get_the_taxonomies$post$args ); ?> 

Parameters

post
(int) (optional) The post ID to get taxonomies of.
Default: 0
args
(array) (optional) Arguments about how to format the list of taxonomies. Default empty array. Overrides the defaults.
Default: None

Default Arguments

$args = array( 
 'template' => __( '%s: %l.' ), 
 'term_template' => '<a href="%1$s">%2$s</a>',
);

Return Values

(Array) 

Array ( [taxonomy_slug] => Taxonomy Name: <a href='http://yourdomain.com/Term_Slug/'>Term Name</a>. )

Source File

the_taxonomies() is located in wp-includes/taxonomy.php.

Related

the_taxonomies, the_tags, the_category

See also index of Function Reference and index of Template Tags.