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:

Description

Displays the terms for a post in a list.

Related Functions

get_the_terms, get_terms, the_title_rss, has_term, the_date

Top Google Results

User discussions

wpseek mobile