A WordPress-centric search engine for devs and theme authors



the_tags ›

Since2.3.0
Deprecatedn/a
the_tags ( $before = null, $sep = ', ', $after = '' )
Parameters: (3)
  • (string) $before Optional. Before list.
    Required: No
    Default: null
  • (string) $sep Optional. Separate items using this.
    Required: No
    Default: ', '
  • (string) $after Optional. After list.
    Required: No
    Default: (empty)
Defined at:
Codex:

Retrieve the tags for a post.



Source

function the_tags( $before = null, $sep = ', ', $after = '' ) {
	if ( null === $before )
		$before = __('Tags: ');
	echo get_the_tag_list($before, $sep, $after);
}