Languages: English • taxonomies 日本語 (Add your language)
This template tag can be used within The Loop to display Links for taxonomies and belonging Terms for a post without specifying the Post ID. You can also use it outside The Loop to display the taxonomies for a specific post.
<?php the_taxonomies( $args ); ?>
A List of Links to your Tags in the taxonomies
Taxonomy Name: <a href="http://example.com/term_slug/">Term Name</a>, <a href="http://example.com/term_slug-2/">Term Name 2</a>, and <a href="http://example.com/term_slug-3/">Term Name 3</a>, .
<?php the_taxonomies( 'before=<ul>&after=</ul>' ); ?>
<?php
$args = array(
//default to current post
'post' => 0,
'before' => '<p class="meta">',
//this is the default
'sep' => ' ',
'after' => '<p class="meta">',
//this is the default
'template' => '%s: %l.'
);
the_taxonomies( $args );
?>
the_taxonomies() is located in wp-includes/taxonomy.php
.
get_the_taxonomies, the_tags, the_category