wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



the_tags › WordPress Function

Da2.3.0
Deprecaton/a
the_tags ( $before = null, $sep = ', ', $after = '' )
Parametri: (3)
  • (string) $before Optional. String to use before the tags. Defaults to 'Tags:'.
    Richiesto: No
    Default: null
  • (string) $sep Optional. String to use between the tags. Default ', '.
    Richiesto: No
    Default: ', '
  • (string) $after Optional. String to use after the tags. Default empty.
    Richiesto: No
    Default: (vuoto)
Definito a:
Codex:

Displays the tags for a post.



Sorgenti

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

	$the_tags = get_the_tag_list( $before, $sep, $after );

	if ( ! is_wp_error( $the_tags ) ) {
		echo $the_tags;
	}
}