Codex

Function Reference/the taxonomies

Contents

Description

This template tag can be used within The Loop to display the taxonomies for a post without specifying the Post ID. You can also use it outside The Loop to display the taxonomies for a specific post.

Usage

 <?php the_taxonomies$args ); ?> 

Parameters

post
(int) (optional) The post ID to get taxonomies of.
Default: 0
before
(string) (optional) Display before taxonomies list.
Default: None
sep
(string) (optional) Separate every taxonomy with value in this.
Default: None
after
(string) (optional) Display this after the taxonomies list.
Default: None
template
(string) (optional) Template used to display the taxonomies list.
Default: None

Example

 <?php the_taxonomies('before=<ul>&after=</ul>'); ?> 

Source File

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

Related

get_the_taxonomies, the_tags, the_category

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