Function: the_tags

the_tags( string $before, string $sep, string $after )

Retrieve the tags for a post.

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
$before string null

Optional. Before list.

$sep string ', '

Optional. Separate items using this.

$after string ''

Optional. After list.

WordPress Developer Newsletter

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