get_the_tag_list


get_the_tag_list ( $before = '', $sep = '', $after = '', $post_id = 0 )

Parameters:
  • (string) before Optional. String to use before the tags. Default empty.
  • (string) sep Optional. String to use between the tags. Default empty.
  • (string) after Optional. String to use after the tags. Default empty.
  • (int) post_id Optional. Post ID. Defaults to the current post ID.
Returns:
  • (string|false|WP_Error) A list of tags on success, false if there are no terms, WP_Error on failure.
Defined at:

Description

Retrieves the tags for a post formatted as a string.

Related Functions

get_the_tags, get_the_term_list, get_the_category_list, get_the_title, get_theme_feature_list

Top Google Results

User discussions

wpseek mobile