the_terms
the_terms ( $post_id, $taxonomy, $before = '', $sep = ', ', $after = '' )
Parameters:- (int) post_id Post ID.
- (string) taxonomy Taxonomy name.
- (string) before Optional. String to use before the terms. Default empty.
- (string) sep Optional. String to use between the terms. Default ', '.
- (string) after Optional. String to use after the terms. Default empty.
Returns:- (void|false) Void on success, false on failure.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Displays the terms for a post in a list.