Core Function
View Source on Trac ↗ the_terms()
the_terms(
mixed $post_id,
mixed $taxonomy,
mixed $before = '',
mixed $sep = ', ',
mixed $after = ''
) Displays the terms for a post in a list.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_id int | Post ID. Required |
| $taxonomy string | Taxonomy name. Required |
| $before string | Optional. String to use before the terms. Default empty. |
| $sep string | Optional. String to use between the terms. Default ', '. |
| $after string | Optional. String to use after the terms. Default empty. |
Return Value
((void)
| false) Void on success, false on failure.
Function Information
Since Version
2.5.0
Source File
wp-includes/category-template.php
Advertisement