Function: the_terms

the_terms( integer $id, string $taxonomy, string $before, string $sep, string $after )

Display the terms in a list.

Shortcut: tt

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$id integer

Post ID.

$taxonomy string

Taxonomy name.

$before string ''

Optional. Before list.

$sep string ', '

Optional. Separate items using this.

$after string ''

Optional. After list.

Returns

false | void

False on WordPress error.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.